Naar inhoud springen
Tibata
Docs
Spaces

Create Space

POST
/v1/spaces

Creates a single space

Autorisatie

bearerAuth
headerAutorisatieBearer <token>

Request-body

Space to add

application/json
  1. body
name*string

Name of the space

slug?string

URL-friendly identifier for the space, unique within the organization. Auto-generated from the name if not provided.

Patroon^[a-z0-9]+(?:-[a-z0-9]+)*$
description?string

Short description of the space

applyProjectDefaults?boolean

Whether to create the organization's default projects inside the new space. The projects are created together with the space, so the space is never visible without them. Their names and order are copied from the organization's project settings as they are at the moment of the request, not linked to them: a later change to those settings leaves this space untouched. Defaults to false, and has no effect when the organization has defined no default projects.

Standaardfalse

Responsbody

Space created

application/json
  1. response
data*
Voorbeeldverzoek
curl -X POST 'https://api.tibata.ai/v1/spaces' \  -H 'Content-Type: application/json' \  -d '{  "name": "Space 1",  "slug": "space-1",  "description": "Space 1 description",  "applyProjectDefaults": true}'
Voorbeeldrespons
{  "data": {    "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  }}