Skip to content
Navigation

Create a space type

Creates a space type at the organization root. Authorization: organization administrators only — other callers get 403. Body: title (1–120 chars) and identifier, a lowercase slug (starts with a letter, then letters/digits/hyphens, no trailing hyphen, 2–40 chars). The identifier is the permanent key and cannot be reused — a duplicate returns 409 identifier_taken.

POST
https://api.cloudraker.com/space-types
Try it
Request body
Live API request

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

Authorization

  • bearerAuth
    HTTP
    required

Request body JSON required

  • title
    string
    required
    maxLength: 120 · minLength: 1
  • identifier
    string
    required
    pattern: ^[a-z][a-z0-9-]{0,38}[a-z0-9]$

Returns

201

The created space type.

JSON
  • spaceType
    object
    required
    • identifier
      string
      required

      The stable lowercase key.

    • title
      string
      required
    • 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))$
    • createdBy
      optional
      string

      User id of the creator.

    • ontology
      optional
      object

      Per-space-type extraction configuration, applied to future ingests.

      • prompt
        optional
        string

        Freeform guidance appended to the extraction instructions.

        maxLength: 4000
      • entities
        optional
        array of
        object

        Allowed entity types. When non-empty this list REPLACES the built-in types; extracted entities are validated against these keys.

        • key
          string
          required
          pattern: ^[a-z][a-z0-9_-]{0,63}$
        • description
          optional
          string
          maxLength: 500
      • includeDateTime
        optional
        boolean

        Include the current date and time during extraction.

400

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

409

identifier_taken — a space type with this identifier already exists.

Type to search…

↑↓ navigate↵ selectEsc close