Manually update the recorded subscription
PUT/panel/workspaces/:workspace/subscription
Updates the workspace's recorded default subscription directly. No payment platform is contacted, so this changes only what Mixpost has stored.
Only platform_plan_id, status, trial_ends_at and paused_from can be changed. trial_ends_at and paused_from are always overwritten from the request, so omitting either resets it to null. Send the current value to keep it.
success reflects whether the row was actually written, so it can be false when nothing changed.
Request
Responses
- 200
- 401
- 403
- 404
- 422
{"success": <bool>} — reports whether the update or delete actually affected a record, so false is possible.
The bearer token is missing, malformed, unknown, or expired.
The token is valid, but the user it belongs to may not perform this action:
- they are not a member of the
{workspace}in the path; or - their workspace role is too low for this endpoint (write routes require Admin or Member); or
- for
/panelendpoints, they are not a platform administrator.
The host application that Mixpost is installed into can also deny access to Mixpost as a whole, which produces the same response.
The {workspace} UUID in the path does not match any workspace.
Validation failed, or the workspace has no subscription:
{"errors": {"subscription": ["This workspace does not have a subscription."]}}