Add a generic (platform-less) subscription
POST/panel/workspaces/:workspace/subscription/generic
Grants the workspace a generic subscription — an internal subscription that exists only in Mixpost, with no payment platform involved and no charge.
Side effect: any existing subscription on the workspace is first cancelled immediately and then deleted. This is destructive and happens even if the cancellation on the payment platform fails, so a stale subscription may be left behind there. Do not use this endpoint to change a paying workspace's plan — use the change-plan endpoint instead.
trial_days overrides the default trial length, and keep_prev_trial_ends_at preserves the previous trial end date.
Request
Responses
- 200
- 401
- 403
- 404
- 422
{"success": true} — hard-coded literal, never false.
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.
The request body failed validation.