---
title: "Update subscription for workspace"
method: PATCH
path: "/support/workspaces/{workspace_id}/sms"
tags: ["Subscriptions Support"]
---

# Update subscription for workspace

`PATCH /support/workspaces/{workspace_id}/sms`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/support/workspaces/{workspace_id}/sms`
- 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`

Update the workspace's chargebee subscription

## Path parameters

- `workspace_id` integer, required: Id of the workspace to work with

## Request body

- SupportSchemaSubscriptionPatchRequest: Subscription detail which needs to be updated
  - `patch` SubscriptionPatchOp[], required
    - `op` 'replace', required: Operation
    - `path` 'subscription_id', required: Path
    - `value` string, required: Value to replace the attribute with

## Response `200`

Request fulfilled, document follows

## Other responses

- `400`: Bad request syntax or unsupported method

---

[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/4b2c943a00dc?raw)
