There are many reasons why you may choose to update a quota quantity. You can use the quota quantity to:
...
PUT - Request 1
PATCH - Request 2
DEPRECATED - Request 3
Request 1 (PUT)
...
Code Block | ||
---|---|---|
| ||
{ "buyer_quota_id": "qb30", "required_count": 100, "criteria": [{ "qualification_code": 214, "condition_codes": [ "112" ] }] } |
Response 1 (PUT)
...
Response Code
200
Response Body
Code Block |
---|
{ "buyer_quota_id": "qb30", "required_count": 100, "criteria": [{ "qualification_code": 214, "condition_codes": [ "112" ] }] } |
...
Code Block | ||
---|---|---|
| ||
[ { "op": "replace", "path": "/current_target", "value": 171 } ] |
Response 2 (PATCH)
...
Response Code
200
Response Body
Code Block | ||
---|---|---|
| ||
{ "quantities": { "hasValidQuotas": true, "isFlexible": true, "minimum": 35, "maximum": 35, "flexibility": 0, "number": 200, "percentage": 100, "achieved": 0, "remaining": 0, "currently_open": 0, "sup_currently_open": 0, "current_target": 171 }, "counter": { "Buyer_side_In_Progress": 0, "Buyer_Survey_Starts": 0, "Buyer_Valid_Clicks": 0 }, "buyer_quota_id": "qb30", "marker": "", "locked": false, "criteria": [{...}], "crtd_on": 1611074478715, "mod_on": 1611246548389, "_id": "60070bae00d59f3155555e44", "isActive": true, "type": 0, "quotaCategory": "autoNested", "quota_id": "d113426df-38de-3434-a69a-1734380f8d28", "suppliers": {...} } |
Request 3 [DEPRICATED]
...
Body:
Code Block | ||
---|---|---|
| ||
[{ "op": "replace", "path": "/required_count", "value": 171 }] |
Response 3 [DEPRICATED]
...
Response Code
200
Response Body
Code Block |
---|
{ "ps_buyer_quota_id": "qb30", "required_count": 171 } |
...