Skip to main content
PUT
/
api
/
v1
/
sub-entitlement
/
quota
Update quota for an entitlement
curl --request PUT \
  --url https://dev-entitlements-api.iqraa.ai/api/v1/api/v1/sub-entitlement/quota \
  --header 'Content-Type: application/json' \
  --header 'x-admin-api-key: <x-admin-api-key>' \
  --data '
{
  "subscriptionId": "sub_123",
  "entitlementCode": "ent_doc",
  "quota": 1000
}
'

Headers

x-admin-api-key
string
required

The API key to access the admin API

Body

application/json
subscriptionId
string
required

The subscription ID

Example:

"sub_123"

entitlementCode
string
required

The entitlement code

Example:

"ent_doc"

quota
number
required

The new quota value (-1 for unlimited)

Required range: x >= -1
Example:

1000

Response

Quota updated successfully