Skip to content
Navigation

Batch-import objects into a space

Bulk-imports up to 200 objects for a definition within a space (used by the extraction-import feed). Authorization: requires space:contribute on :spaceId — lacking it gives 403 (no space:read → 404). Body: { objects: [{ _id?, data, fieldMeta?, provenance?, origin? }] } (1–200 rows). A caller-chosen _id makes the row idempotent — an existing/repeated id is skipped; a non-empty provenance (per-field citation pointers) seeds a pending review per grounded field. A row origin accepts only { actionRunId }; any supplied playbookRunId is ignored because playbook provenance can only be added during playbook execution. Web imports always stay pending: a top-level reviewStatus cannot approve an import. Always returns 200 (never a partial-failure status) with { results, created, skipped, failed }; each result is { index, status: created|skipped|duplicate|invalid, _id?, issues? }.

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

  • objects
    array of
    object
    required
    • data
      map of
      unknown
      required
    • _id
      optional
      string

      Caller-chosen id. A repeat of an existing id makes the row skipped.

    • fieldMeta
      optional
      map of
      map<unknown>

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

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

      A non-empty map seeds a pending review per grounded field.

    • origin
      optional
      object

      Only actionRunId is accepted; a supplied playbookRunId is dropped.

      • actionRunId
        optional
        string

Returns

200

Per-row outcome.

JSON
  • results
    array of
    object
    required
    • index
      number
      required
    • status
      created
      or
      skipped
      or
      duplicate
      or
      invalid
      required
    • _id
      optional
      string
    • fieldKey
      optional
      string
    • issues
      optional
      array of
      object
      • fieldKey
        string
        required
      • message
        string
        required
  • created
    number
    required
  • skipped
    number
    required
  • failed
    number
    required

403

Missing space:contribute.

Type to search…

↑↓ navigate↵ selectEsc close