Create a workspace
POST/panel/workspaces
Creates a workspace.
When owner_id is supplied, that user is added to the workspace with the admin role and approval rights.
The response contains only the workspace's own fields — uuid, name, avatar, owner_id, access_status and created_at. The owner, users, subscriptions, generic_subscription and pivot objects are not included. Fetch the workspace with GET /panel/workspaces/{workspace} if you need them.
Request
Responses
- 201
- 401
- 403
- 422
Created workspace. Note that this endpoint returns 200, not 201.
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 request body failed validation.