Skip to main content
PATCH
/
api
/
v1
/
entitlements
/
{entitlement_id}
Update an entitlement
curl --request PATCH \
  --url https://api.example.com/api/v1/entitlements/{entitlement_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "value": {
    "enabled": true
  }
}
'
{
  "created_at": "2023-11-07T05:31:56Z",
  "feature_id": "<string>",
  "id": "<string>",
  "updated_at": "2023-11-07T05:31:56Z",
  "value": {
    "enabled": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.meteroid.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

entitlement_id
string<MeteroidId>
required

Entitlement ID

Example:

"ent_7n42DGM5Tflk9n8mt7Fhc7"

Body

application/json
value
object

Replace the entitlement value entirely.

Response

Entitlement updated

created_at
string<date-time>
required
feature_id
string<MeteroidId>
required
Example:

"feat_7n42DGM5Tflk9n8mt7Fhc7"

id
string<MeteroidId>
required
Example:

"ent_7n42DGM5Tflk9n8mt7Fhc7"

updated_at
string<date-time>
required
value
object
required