Skip to content
Navigation

Create an object

Creates one object of a definition within a space. Authorization: requires space:contribute on :spaceId — lacking it gives 403 (no space:read → 404). Body: { data, fieldMeta? } — data is field values keyed by field key (validated against the definition via JSON Schema; defaults applied); optional fieldMeta accepts only source/locked per key. A unique-field collision returns 409 duplicate_value (with fieldKey); invalid data → 422 validation_failed. Returns 201 with { object }.

POST
https://api.cloudraker.com/spaces/{spaceId}/objects/{definitionId}
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

  • spaceId
    string
    required
  • definitionId
    string
    required

Request body JSON required

  • data
    map of
    unknown
    required

    Field values keyed by field key.

  • fieldMeta
    optional
    map of
    map<unknown>

    Per-field metadata keyed by field key. Only source and locked are accepted.

Returns

201

The created object.

JSON
  • object
    object
    required
    • _id
      string
      required
    • spaceId
      string
      required
    • definitionId
      string
      required
    • definitionVersion
      number
      required
    • data
      map of
      unknown
      required

      Field values keyed by field key.

    • fieldMeta
      map of
      object
      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
      string
      required
    • updatedBy
      string
      required
    • deletedAt
      required

      Any of the following:

      • string
      • null
    • provenance
      optional
      map of
      array<map<unknown>>

      Per-field grounding: field key → citation pointers, imported verbatim from the extraction feed.

    • review
      optional
      map of
      object

      Per-field review state. An approved or rejected field is locked against edits.

    • origin
      optional
      object

      Set on create, never patchable.

      • actionRunId
        optional
        string
      • playbookRunId
        optional
        string

        Set only when a playbook dispatched the run; callers cannot claim it.

403

Missing space:contribute.

409

duplicate_value — a unique-field collision.

422

validation_failed — data fails the definition schema.

Type to search…

↑↓ navigate↵ selectEsc close