Skip to content
Navigation

Bulk-review an object's fields

Sets a review status across many of an object's fields at once (the provenance/AI-import approval flow). Authorization: requires space:contribute on :spaceId; there is no more specific review permission. Lacking it gives 403 (no space:read → 404). Body: { status, note?, fieldKeys? } where status is pending|approved|rejected; fieldKeys defaults to the grounded (provenance) fields, else every data field. An approved/rejected field becomes review-locked against edits. Unknown field key → 404, invalid status → 422 invalid_status. Returns the updated { object }.

PATCH
https://api.cloudraker.com/spaces/{spaceId}/objects/{definitionId}/{objectId}/review
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
  • objectId
    string
    required

Request body JSON required

  • status
    pending
    or
    approved
    or
    rejected
    required
  • note
    optional
    string
  • fieldKeys
    optional
    array of
    string

    Defaults to the grounded (provenance) fields, else every data field.

Returns

200

The object with its review state updated.

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.

404

Unknown object/field (or missing space:read).

422

invalid_status — status is not pending/approved/rejected.

Type to search…

↑↓ navigate↵ selectEsc close