Skip to content
Navigation

Update a space type

Updates a space type's ontology extraction configuration: ontology.prompt (freeform guidance appended to the extraction instructions, max 4000 chars), ontology.entities (allowed entity types as { key, description? } — when non-empty this list replaces the built-in types and extracted entities are validated against it), and ontology.includeDateTime (includes the current date and time for relative-date normalization). Configuration takes effect on future ingests only — re-ingest files to apply it. Authorization: organization administrators only — other callers get 403. Returns 200 { spaceType }; 404 if the space type does not exist.

PATCH
https://api.cloudraker.com/space-types/{spaceTypeId}
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

  • ontology
    object
    required
    • 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.

Returns

200

The updated 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

404

not_found — the space type does not exist.

Type to search…

↑↓ navigate↵ selectEsc close