Spaces
Batch Create Spaces
POST
Creates multiple spaces in a single request. Every item is processed even if some fail — check each entry in the response to see which succeeded and which failed.
bearerAuthheader
AutorisatieBearer <token>Spaces to add
application/json- body
[index: integer]?All spaces created successfully
application/json- response
data*array<>curl -X POST 'https://api.tibata.ai/v1/spaces/batch' \ -H 'Content-Type: application/json' \ -d '[ { "name": "Space 1", "slug": "space-1", "description": "Space 1 description", "applyProjectDefaults": true }, { "name": "Space 2", "slug": "space-2", "description": "Space 2 description" }]'Voorbeeldrespons
{ "data": [ { "space": { "id": "tB6gszM_JPk7vKaHfz1H4", "name": "Space 1", "slug": "space-1", "description": "Space 1 description", "url": "https://app.tibata.ai/o/my-org/space-1", "restricted": false }, "error": null }, { "space": { "id": "uC7htzN_KQl8wLbIgy2I5", "name": "Space 2", "slug": "space-2", "description": "Space 2 description", "url": "https://app.tibata.ai/o/my-org/space-2", "restricted": false }, "error": null } ]}Create Space POST
Creates a single space
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`.