Skip to content
Navigation

Update an object

Partially updates an object. Authorization: requires space:contribute on :spaceId — lacking it gives 403 (no space:read → 404). Body: { data?, unset?, fieldMeta? } — data merges field values, unset clears the named field keys, fieldMeta sets source/locked per key (and can lock/unlock without writing). A fieldMeta-locked or review-approved/rejected field refuses a write/unset with 409 field_locked (unless the fieldMeta lock is cleared in the same request; a review-lock must be dismissed via the review routes first). Unique collision → 409 duplicate_value, invalid data → 422, unknown object → 404. A human edit clears that field's provenance. Returns { object }.

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

  • data
    optional
    map of
    unknown

    Field values to merge.

  • unset
    optional
    array of
    string

    Field keys to clear.

  • fieldMeta
    optional
    map of
    map<unknown>

    May lock or unlock a field without writing a value.

Returns

200

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

404

No such object (or missing space:read).

409

field_locked (locked/review-locked field) or duplicate_value.

422

validation_failed — the merged data fails the schema.

Type to search…

↑↓ navigate↵ selectEsc close