Add quota
Add to a customer's quota allowance for a feature. Defaults to 1 if count is omitted.
Add to a customer's quota allowance for a feature. Defaults to 1 if count is omitted.
ApiKeyAuth In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
curl -X POST "https://commet.co/api/v1/usage/quota" \ -H "Content-Type: application/json" \ -d '{ "featureCode": "string" }'1 <= length <= 2001 <= length <= 200^[a-z0-9_]+$1 <= length <= 501 <= length <= 200Customer public ID. Provide this or externalId.
Your own customer identifier. Provide this or customerId.
Feature code. Lowercase letters, numbers, and underscores only.
Amount to apply. Optional for add/remove (defaults to 1); required for set.
Add to a customer's quota allowance for a feature. Defaults to 1 if count is omitted.
{
"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"
}
}