Update Space
Updates a space by ID.
When not every member can edit the Space (general access Can view or No access), the token needs the Editor or Manager role on that Space: a client-credentials token through a role given to its client, a token issued for a user through that user's role. Without it, the request answers 403 with the code FORBIDDEN and the reason ROLE_REQUIRED, and nothing changes.
A name or slug another Space already uses answers 409 with the code CONFLICT and the reason NAME_TAKEN or SLUG_TAKEN. When someone else changes the Space while the request is being saved, it answers 409 with the reason CHANGED, and nothing changes: fetch the Space and send the update again.
bearerAuthAutorisatieBearer <token>space_id*stringID of the Space
Space fields to update
application/json- body
name?stringName of the space
slug?stringURL-friendly identifier for the space, unique within the organization
^[a-z0-9]+(?:-[a-z0-9]+)*$description?stringShort description of the space
Space updated
application/json- response
data*curl -X PATCH 'https://api.tibata.ai/v1/spaces/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "id": "string", "name": "string", "slug": "string", "description": "string", "url": "http://example.com", "restricted": true }}Get Space GET
Returns a single space by ID. A restricted Space is returned with `restricted` set to `true` when the token has a role on it: a client-credentials token through a role given to its client, a token issued for a user through that user's role. Without one, the request answers `403` with the code `FORBIDDEN` and the reason `ROLE_REQUIRED`.
Delete Space DELETE
Deletes a space by ID. The token needs the Manager role on that Space, whatever its general access: a client-credentials token through a role given to its client, which the organization registered, a token issued for a user through that user's role, and that user must be an admin or owner of the organization. Without it, the request answers `403` with the code `FORBIDDEN` and the reason `ROLE_REQUIRED`, and nothing is deleted.