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

NameTypeRequiredDescription
company_idstring <uuid>YesUUID of the company to remove workspace frome.g. 00000000-0000-4000-8000-000000000000
workspace_idstring <uuid>YesUUID 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

204Workspace relationship removed successfully

401Unauthorized - invalid API key

{
  "code": "UNAUTHORIZED",
  "status": 401,
  "title": "Unauthorized",
  "message": "See title.",
  "meta": {
    "trace_id": "a1b2c3",
    "log_id": "a1b2c3"
  }
}

404Company not found