---
title: "Set or clear the subscription plan of a pooled credential"
method: PATCH
path: "/api/keys/plan"
tags: ["API Keys"]
---

# Set or clear the subscription plan of a pooled credential

`PATCH /api/keys/plan`

## Request body

- object
  - `keyType` string, required
  - `keySuffix` string, required
  - `plan` string, nullable, required

## Response `200`

Plan updated

- object
  - `success` true, required
  - `keyType` string, required
  - `keySuffix` string, required
  - `plan` string, nullable, required

## Other responses

- `400` — Unknown plan, or a plan for another credential type
- `401` — Unauthorized
- `404` — Key not found

## Changes

- **2026-09-25** `e37bf8e5b7b0` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/keys/plan/patch.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/01e2386c97da?raw)
