Skip to content
Navigation

Edit an extracted document of a run

Overwrites extracted field values on one document of a terminal extract run. Body: { fields: { <fieldKey>: <value> } }. A field whose value changes LOSES its source citation (the evidence no longer backs a human-supplied value); untouched fields keep theirs. Requires space:contribute (denied → 403). A run stays editable for 7 days after it starts; after that an edit answers 404 state_gone and the results stay readable through getRunResult. 409 rows_edit_bulk_only for a table-rows run: those store their values in rows, so edit one with patchSpaceRunDocRow.

PATCH
https://api.cloudraker.com/spaces/{spaceId}/runs/{runId}/docs/{docId}
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
  • runId
    string
    required
  • docId
    string
    required

Request body JSON required

  • fields
    map of
    unknown
    required

    Field key → new value. A field whose value changes loses its source citation; untouched fields keep theirs.

Returns

200

The edited document.

JSON
  • saved
    boolean
    required
  • synced
    boolean
    required

    False when the durable result was not refreshed. With changed or edited true, the edit is stored but a later read still returns the old value: save again to publish it. With both false, nothing needed publishing and there is nothing to retry.

  • changed
    boolean
    required

    False when nothing in the patch differed.

  • edited
    boolean
    required

    The stored document carries a human edit, from this request or an earlier one. Tells a synced: false that is waiting to be published apart from one that had nothing to publish.

  • data
    optional
    map of
    unknown
  • evidence
    optional
    map of
    array<map<unknown>>

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

404

The run has no editable result, or it is past its 7-day edit window.

409

A table-rows document is not field-addressable.

Type to search…

↑↓ navigate↵ selectEsc close