Skip to content
Navigation

Create a space

Creates a space under the space type named in the path. Authorization: requires spacetype:contribute on the parent space type; organization administrators bypass this check. A caller lacking the grant gets 403. Body: title (1–120 chars); the space id is a server-generated uuid. Returns 201 { space }; 404 if the parent space type does not exist.

POST
https://api.cloudraker.com/space-types/{spaceTypeId}/spaces
Try it
Path parameters
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • spaceTypeId
    string
    required

Request body JSON required

  • title
    string
    required
    maxLength: 120 · minLength: 1

Returns

201

The created space.

JSON
  • space
    object
    required
    • id
      string
      required
    • title
      string
      required
    • spaceType
      string
      required

      Identifier of the parent space type.

    • createdAt
      string
      required
      format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
    • updatedAt
      string
      required
      format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
    • expiresAt
      required

      Deadline of an API-managed (/v1) space, after which it is closed and its files deleted. null for a space created in the app, which never expires.

      Any of the following:

      • string
      • null
    • createdBy
      optional
      string

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

404

not_found — the parent space type does not exist.

Type to search…

↑↓ navigate↵ selectEsc close