Remove Workspace from Company
delete
/v1/companies/{company_id}/relationships/workspace/{workspace_id}Remove a workspace relationship from a company. This operation soft-deletes the relationship between the company and workspace.
Requires a bearer token: Authorization: Bearer <token>.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| company_id | string <uuid> | Yes | UUID of the company to remove workspace frome.g. 00000000-0000-4000-8000-000000000000 |
| workspace_id | string <uuid> | Yes | UUID of the workspace to remove from the companye.g. 00000000-0000-4000-8000-000000000000 |
Request
cURL
curl -X DELETE https://api.wellapp.ai/v1/companies/{company_id}/relationships/workspace/{workspace_id} \
-H "Authorization: Bearer $WELL_API_TOKEN"Responses
204 — Workspace relationship removed successfully
401 — Unauthorized - invalid API key
{
"code": "UNAUTHORIZED",
"status": 401,
"title": "Unauthorized",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}404 — Company not found