Update a workspace
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}
Authorization: Bearer <token>
Body:
{
"name": "Updated Workspace Name",
"hex_color": "#10b981",
"owner_id": 2,
"access_status": "unlimited"
}
| Key | Format | Required | Description |
|---|---|---|---|
name | string | required | Workspace name (max 60 characters) |
hex_color | string | required | HEX color for the workspace |
owner_id | integer | optional | User ID of the workspace owner. If the user is not already a member, they will be added as an admin. |
access_status | string | required | Access status: subscription, unlimited, or locked |
Response:
- 200
- 401
- 403
- 404
- 422
{
"success": true
}
{
"success": false
}
{
"message": "Unauthenticated."
}
{
"message": "Access forbidden."
}
{
"message": "Workspace not found."
}
{
"message": "Validation errors",
"errors": {}
}