Remove a workspace from a group
delete
/v1/workspace-groups/{workspace_group_id}/workspaces/{workspace_id}Soft-deletes the join row. Actor must be owner/admin (asymmetric with add: no direct workspace membership required).
Requires a bearer token: Authorization: Bearer <token>.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| workspace_group_id | string <uuid> | Yes | Group ID.e.g. 00000000-0000-4000-8000-000000000000 |
| workspace_id | string <uuid> | Yes | Workspace ID.e.g. 00000000-0000-4000-8000-000000000000 |
Request
cURL
curl -X DELETE https://api.wellapp.ai/v1/workspace-groups/{workspace_group_id}/workspaces/{workspace_id} \
-H "Authorization: Bearer $WELL_API_TOKEN"Responses
204 — Removed.
401 — Unauthorized.
{
"code": "UNAUTHORIZED",
"status": 401,
"title": "Unauthorized",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}403 — Not owner/admin.
{
"code": "FORBIDDEN",
"status": 403,
"title": "Forbidden",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}404 — Group, workspace, or join row not found.
{
"code": "NOT_FOUND",
"status": 404,
"title": "Not Found",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}