# Replace a plan’s grants

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

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

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | required |  |

## Request body

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "entitlements": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "feature": {
            "type": "string",
            "description": "Feature key (or id)."
          },
          "value": {
            "type": "boolean",
            "description": "switch"
          },
          "limit": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "description": "limit — null = unlimited"
          },
          "grant": {
            "type": "integer",
            "minimum": 0,
            "description": "credit_pool — granted per period (or once)"
          },
          "reset": {
            "type": "string",
            "enum": [
              "period",
              "never"
            ]
          },
          "per_seat": {
            "type": "boolean"
          }
        },
        "required": [
          "feature"
        ]
      }
    }
  },
  "required": [
    "entitlements"
  ]
}
```

## Responses

### 200

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

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "plan_id": {
          "type": "string",
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "entitlements": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "feature": {
                "type": "string",
                "description": "Feature key (or id)."
              },
              "value": {
                "type": "boolean",
                "description": "switch"
              },
              "limit": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 0,
                "description": "limit — null = unlimited"
              },
              "grant": {
                "type": "integer",
                "minimum": 0,
                "description": "credit_pool — granted per period (or once)"
              },
              "reset": {
                "type": "string",
                "enum": [
                  "period",
                  "never"
                ]
              },
              "per_seat": {
                "type": "boolean"
              }
            },
            "required": [
              "feature"
            ]
          }
        }
      },
      "required": [
        "plan_id",
        "entitlements"
      ]
    },
    "_agent": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok"
          ]
        },
        "next_actions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "summary",
        "status",
        "next_actions",
        "warnings"
      ]
    },
    "api_version": {
      "type": "string",
      "example": "2026-07-01"
    }
  },
  "required": [
    "data",
    "_agent",
    "api_version"
  ]
}
```
