Update workspace subscription
Enterprise Only
This endpoint is only available in the Enterprise package and requires the authenticated user to be a Super Admin.
Method: PUT
URL: https://example.com/<MIXPOST_CORE_PATH>/api/panel/workspaces/{workspaceUuid}/subscription
Authorization: Bearer <token>
Body:
{
"platform_plan_id": "price_1234567890",
"status": "active",
"trial_ends_at": null,
"paused_from": null
}
| Key | Format | Required | Description |
|---|---|---|---|
platform_plan_id | string | required | Plan ID from payment platform |
status | string | required | Subscription status: active, trialing, past_due, paused, canceled, incomplete |
trial_ends_at | string | required if status is trialing | Trial end date (ISO 8601 format) |
paused_from | string | required if status is paused | Pause start date (ISO 8601 format) |
Response:
- 200
- 401
- 403
- 404
- 422
{
"success": true
}
{
"success": false
}
{
"message": "Unauthenticated."
}
{
"message": "Access forbidden."
}
{
"message": "Workspace not found."
}
{
"message": "Validation errors",
"errors": {
"subscription": ["Subscription not found."]
}
}