# Update subscription

```http
PATCH /accounts/{account_id}/subscription
```

Change the plan, billing cycle, seats or add-ons of an account; returns what changed, or a checkout URL when the change needs payment. Requires account.billing.manage.

## Parameters

| Name         | In   | Required | Description |
| ------------ | ---- | -------- | ----------- |
| `account_id` | path | Yes      |             |

## Request body

| Field              | Type         | Required | Description                                 |
| ------------------ | ------------ | -------- | ------------------------------------------- |
| `type`             | string       | Yes      | Subscription tier to upgrade to.            |
| `cycle`            | string       | Yes      | Billing cycle                               |
| `quantity`         | integer      |          | Seat quantity for licensed subscriptions    |
| `server_quantity`  | integer,null |          | Recurring server add-on quantity            |
| `sandbox_quantity` | integer,null |          | Recurring sandbox add-on quantity           |
| `success_url`      | string       |          | URL to redirect to after successful payment |
| `cancel_url`       | string       |          | URL to redirect to if payment is canceled.  |

## Responses

| Status | Description                                                 |
| ------ | ----------------------------------------------------------- |
| 200    | What the update changed, or the checkout that completes it. |
| 400    | Bad request                                                 |
| 401    | Unauthorized                                                |
| 402    | Seat reduction blocked until seat usage is reduced          |
| 403    | Forbidden                                                   |
| 404    | Not found                                                   |
| 409    | Conflict                                                    |
| 500    | Server error                                                |
