Entitlements
View as Markdown

Replace a plan’s grants

Needs the catalog:write scope, or a full-access key. About scopes

PUT
/api/v1/plans/{id}/entitlements

Authorization

Authorization
Required
Bearer <token>

An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).

In: header

Request Body

application/jsonOptional

entitlements
Required
array<object>

Path Parameters

id
Required
string

Format: "uuid"
curl -X PUT "https://globalymint.com/api/v1/plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/entitlements" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "entitlements": [
      {
        "feature": "string",
        "value": true,
        "limit": 0,
        "grant": 0,
        "reset": "period",
        "per_seat": true
      }
    ]
  }'

The grant set. Emits entitlements.updated for every customer whose snapshot changed.

{
  "data": {
    "plan_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "entitlements": [
      {
        "feature": "string",
        "value": true,
        "limit": 0,
        "grant": 0,
        "reset": "period",
        "per_seat": true
      }
    ]
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}