Catalog
View as Markdown

Update a plan (name, active and metadata only; pricing is immutable)

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

PATCH
/api/v1/plans/{id}

Authorization

Authorization
Required
Bearer <token>

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

In: header

Request Body

application/jsonOptional

namestring

Minimum length: 1Maximum length: 200

activeboolean

metadataobject

At most 20 keys; values up to 500 characters.

Path Parameters

id
Required
string

Format: "uuid"
curl -X PATCH "https://globalymint.com/api/v1/plans/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "active": true,
    "metadata": {
      "property1": "string",
      "property2": "string"
    }
  }'

The plan, as GET /plans/{id} returns it.

{
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "name": "string",
    "active": true,
    "metadata": {
      "property1": "string",
      "property2": "string"
    },
    "property1": null,
    "property2": null
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}