Updates a quota for a specific project.
cURL
curl --request PATCH \ --url https://api-staging.respondent.io/v1/projects/{projectId}/quota \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --header 'x-api-secret: <x-api-secret>' \ --data ' { "version": "v1", "criteria": { "category": "gender", "segments": [ { "value": "male", "percentage": 50 } ] } } '
{ "progress": { "1": { "currentCount": 10, "targetCount": 25 }, "2": { "currentCount": 15, "targetCount": 30 } }, "id": "<string>", "projectId": "<string>", "version": "v1", "totalTarget": 2, "status": "IN_PROGRESS", "criteria": { "category": "gender", "segments": [ { "value": "male", "percentage": 50, "id": "1" } ] }, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }
v1
"v1"
Updated quota criteria details
Show child attributes
Quota progress by segment ID
{ "1": { "currentCount": 10, "targetCount": 25 }, "2": { "currentCount": 15, "targetCount": 30 }}
x >= 1
IN_PROGRESS
FILLED
Was this page helpful?