Remove user from workspace
Enterprise Only
This endpoint is only available in the Enterprise package and requires the authenticated user to be a Super Admin.
Method: DELETE
URL: https://example.com/<MIXPOST_CORE_PATH>/api/panel/workspaces/{workspaceUuid}/users
Authorization: Bearer <token>
Body:
{
"user_id": 1
}
| Key | Format | Required | Description |
|---|---|---|---|
user_id | integer | required | The ID of the user to remove |
Response:
- 200
- 401
- 403
- 404
- 422
{
"success": true
}
{
"message": "Unauthenticated."
}
{
"message": "Access forbidden."
}
{
"message": "Workspace not found."
}
{
"message": "Validation errors",
"errors": {}
}