---
title: "Update Subscription"
method: PUT
path: "/admin/tenants/{tenant_id}/subscription"
tags: ["Subscriptions"]
---

# Update Subscription

`PUT /admin/tenants/{tenant_id}/subscription`

## Request

- Base URL: `https://developer.claimmind.life` (the document declares no server; this is the origin it was published from)
- URL: `https://developer.claimmind.life/admin/tenants/{tenant_id}/subscription`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

Update an existing subscription for a tenant.

Supports changing the plan and/or the ending date. When changing
the plan, the old subscription is terminated and a new one is created.

Use `effective_date` to schedule a future plan change instead of
an immediate switch.

**Access:** mtk_admin and super_admin (scoped to hospital group)

**Request body:**
```json
{
    "plan_code": "claim_mind_pro",
    "ending_at": "2027-01-31",
    "effective_date": null
}
```

## Path parameters

- `tenant_id` string, required

## Request body

- SubscriptionUpdateRequest: Request to update a subscription.
  - `plan_code` string, nullable
  - `ending_at` string, nullable
  - `effective_date` string, nullable

## Response `200`

Successful Response

- SubscriptionUpdateResponse: Response after updating subscription.
  - `subscription` SubscriptionDetail, required: Subscription details from Lago.
    - `lago_id` string, required
    - `external_id` string, required
    - `plan_code` string, required
    - `plan_name` string, required
    - `status` string, required
    - `billing_time` string, nullable
    - `started_at` string, date-time, nullable
    - `ending_at` string, date-time, nullable
    - `created_at` string, date-time, required
  - `previous_plan_code` string, nullable
  - `message` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/claimmind/apis/claimmind-open-api-service.md) - [All operations](https://skmtc.dev/claimmind/apis/claimmind-open-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/claimmind/apis/claimmind-open-api-service/revisions/ee8bfbeadb8a?raw)
