Set quota
Set a customer's quota allowance for a feature to an exact value.
Set a customer's quota allowance for a feature to an exact value.
ApiKeyAuth In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= length <= 2001 <= length <= 200^[a-z0-9_]+$1 <= length <= 501 <= length <= 200application/json
application/json
curl -X PUT "https://commet.co/api/v1/usage/quota" \ -H "Content-Type: application/json" \ -d '{ "featureCode": "string", "count": 0 }'application/json
Customer public ID. Provide this or externalId.
Your own customer identifier. Provide this or customerId.
Feature code. Lowercase letters, numbers, and underscores only.
The exact value to set the quota balance to.
Set a customer's quota allowance for a feature to an exact value.
{
"success": true,
"data": {
"livemode": true,
"id": "string",
"customerId": "string",
"featureCode": "string",
"previousBalance": 0,
"newBalance": 0,
"ts": "2019-08-24T14:15:22Z",
"createdAt"
{
"success": false,
"error": {
"type": "validation_error",
"code": "string",
"message": "string",
"doc_url": "string",
"param": "string"
}
}{
"success": false,
"error": {
"type": "validation_error",
"code": "string",
"message": "string",
"doc_url": "string",
"param": "string"
}
}