curl --request DELETE \
--url https://api.getlago.com/api/v1/subscriptions/{external_id}/entitlements/{feature_code}/privileges/{privilege_code} \
--header 'Authorization: Bearer <token>'{
"entitlement": {
"code": "seats",
"name": "Number of seats",
"description": "Number of users of the account",
"privileges": [
{
"code": "max",
"name": "Maximum",
"value_type": "integer",
"config": {},
"value": 15,
"plan_value": 10,
"override_value": 15
},
{
"code": "max_admins",
"name": "Max Admins",
"value_type": "integer",
"config": {},
"value": 5,
"plan_value": 5,
"override_value": null
},
{
"code": "root",
"name": "Allow root user",
"value_type": "boolean",
"config": {},
"value": true,
"plan_value": true,
"override_value": null
},
{
"code": "provider",
"name": "SSO Provider",
"value_type": "select",
"value": "okta",
"plan_value": "google",
"override_value": "okta",
"config": {
"select_options": [
"google",
"okta"
]
}
}
],
"overrides": {
"max": 15,
"provider": "okta"
}
}
}This endpoint removes a specific privilege from a subscription entitlement. The privilege entitlement remains available from the plan.
curl --request DELETE \
--url https://api.getlago.com/api/v1/subscriptions/{external_id}/entitlements/{feature_code}/privileges/{privilege_code} \
--header 'Authorization: Bearer <token>'{
"entitlement": {
"code": "seats",
"name": "Number of seats",
"description": "Number of users of the account",
"privileges": [
{
"code": "max",
"name": "Maximum",
"value_type": "integer",
"config": {},
"value": 15,
"plan_value": 10,
"override_value": 15
},
{
"code": "max_admins",
"name": "Max Admins",
"value_type": "integer",
"config": {},
"value": 5,
"plan_value": 5,
"override_value": null
},
{
"code": "root",
"name": "Allow root user",
"value_type": "boolean",
"config": {},
"value": true,
"plan_value": true,
"override_value": null
},
{
"code": "provider",
"name": "SSO Provider",
"value_type": "select",
"value": "okta",
"plan_value": "google",
"override_value": "okta",
"config": {
"select_options": [
"google",
"okta"
]
}
}
],
"overrides": {
"max": 15,
"provider": "okta"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
External ID of the existing subscription
"5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba"
Code of the existing feature.
"seats"
Code of the privilege to remove from the subscription entitlement override.
"max_admins"
Subscription entitlement with privilege override removed
Show child attributes
Unique code used to identify the feature. Max 255 characters.
"seats"
Name of the feature. Max 255 characters.
"Number of seats"
Description of the feature. Max 600 characters.
"Number of users of the account"
Privileges associated with this feature. Each privilege shows the plan value and any subscription override.
Show child attributes
Unique code for the privilege.
"max"
Display name for the privilege.
"Maximum"
Data type of the privilege value. Default: string
integer, boolean, string, select "integer"
Applicable value this this subscription (override_value if set, plan_value otherwise). Type depends on the privilege's value_type.
10
Value assigned to this privilege in the plan. Type depends on the privilege's value_type.
10
Value assigned to this subscription specifically. Type depends on the privilege's value_type. Null if no override is set.
10
[
{
"code": "max",
"name": "Maximum",
"value_type": "integer",
"config": {},
"value": 15,
"plan_value": 10,
"override_value": 15
},
{
"code": "max_admins",
"name": "Max Admins",
"value_type": "integer",
"config": {},
"value": 5,
"plan_value": 5,
"override_value": null
},
{
"code": "root",
"name": "Allow root user",
"value_type": "boolean",
"config": {},
"value": true,
"plan_value": true,
"override_value": null
},
{
"code": "provider",
"name": "SSO Provider",
"value_type": "select",
"value": "okta",
"plan_value": "google",
"override_value": "okta",
"config": { "select_options": ["google", "okta"] }
}
]{ "max": 15, "provider": "okta" }