# Set QStash Plan

> Changes the QStash account to a different plan type.

## Endpoint

`POST https://api.upstash.com/v2/qstash/set-plan/{id}`

Changes the QStash account to a different plan type.
This operation changes the plan and associated limits for the QStash account.


## Parameters

- `id` (path, string, required): QStash user ID

## Request body

- `plan_name` (enum<string>, required): Target plan to upgrade to

## Responses

### 200 - QStash plan changed successfully


## cURL

```bash
curl --request POST \
  --url https://api.upstash.com/v2/qstash/set-plan/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "plan_name": "paid"
  }'
```
