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 '{ "criteria": { "category": "gender", "segments": [ { "value": "male", "percentage": 50 } ] }, "version": "v1" }'
{ "id": "<string>", "projectId": "<string>", "version": "v1", "totalTarget": 2, "status": "IN_PROGRESS", "criteria": { "category": "gender", "segments": [ { "value": "male", "percentage": 50, "id": "1" } ] }, "progress": { "1": { "currentCount": 10, "targetCount": 25 }, "2": { "currentCount": 15, "targetCount": 30 } }, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }
v1
Show child attributes
x >= 1
IN_PROGRESS
FILLED
Was this page helpful?