Entitlements
Update entitlement
Changed onUse when changing an entitlement (e.g. increasing or decreasing a limit). Request body contains the fields to update.
put/entitlements/{id}
Request
- Base URLhttps://us.api.flexprice.io/v1
- URLhttps://us.api.flexprice.io/v1/entitlements/{id}
- AuthAPI key in header x-api-key
Path parameters
idstring required
Entitlement ID
Request body
Response
OK
Example response
{
"addon": {
"prices": [
{
"meter": {
"created_at": "2024-03-20T15:04:05Z",
"event_name": "api_request",
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "API Usage Meter",
"status": "published",
"tenant_id": "tenant123",
"updated_at": "2024-03-20T15:04:05Z"
}
}
]
},
"feature": {
"meter": {
"created_at": "2024-03-20T15:04:05Z",
"event_name": "api_request",
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "API Usage Meter",
"status": "published",
"tenant_id": "tenant123",
"updated_at": "2024-03-20T15:04:05Z"
}
},
"plan": {
"prices": [
{
"meter": {
"created_at": "2024-03-20T15:04:05Z",
"event_name": "api_request",
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "API Usage Meter",
"status": "published",
"tenant_id": "tenant123",
"updated_at": "2024-03-20T15:04:05Z"
}
}
]
}
}Changes
- info
added the optional property
/to the response with the status
- info
- warning
removed the request property
- info
added the new optional request property
- warning