---
title: "Change a workspace's self-serve plan"
method: POST
path: "/support/billing/{workspace_id}/change-plan"
tags: ["Billing Actions Support"]
---

# Change a workspace's self-serve plan

`POST /support/billing/{workspace_id}/change-plan`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/support/billing/{workspace_id}/change-plan`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

## Path parameters

- `workspace_id` integer, required

## Request body

- ChangePlanData
  - `new_plan_id` integer, required
  - `when` string
  - `storage_gb` integer, nullable

## Response `200`

Request fulfilled, document follows

- union
  - ActionMessage
    - `message` string, required
  - ChargebeeMoved
    - `message` string, required
    - `chargebee` object, required

## Other responses

- `400`: Bad request syntax or unsupported method
- `403`: Request forbidden -- authorization will not help

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/fe078afe239b?raw)
