Workspaces
Change a workspace's status to 'pendingDelete' for later cleanup.
Requires `canDeleteWorkspace`, which only the workspace OWNER holds — not `canUpdateWorkspace`, which admins also hold. Deleting the workspace is the one way an admin could take it away from its owner, so it costs the owner-only right.
Requires canDeleteWorkspace, which only the workspace OWNER holds — not canUpdateWorkspace, which admins also hold. Deleting the workspace is the one way an admin could take it away from its owner, so it costs the owner-only right.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
workspaceId*string
Unique identifier of the workspace.
Format
uuidResponse Body
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/workspaces/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "slug": "string", "description": "string", "logo": "3c06f846-1ab1-40a9-8645-a19a9fdeae85", "icon": "bc9b3dc5-578a-4929-a13c-7d1a9725e2b0", "color": "string", "settings": {}, "roles": [ "string" ], "status": "active", "createdAt": 1678886400000, "updatedAt": 1678886400000}