Skip to navigation

Edit an extracted document of a run

View as Markdown

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.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

spaceIdstringRequired
runIdstringRequired
docIdstringRequired

Request

This endpoint expects an object.
fieldsmap from strings to anyRequired

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

Response

The edited document.
savedboolean
syncedboolean

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.

changedboolean
False when nothing in the patch differed.
editedboolean

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.

datamap from strings to anyOptional
evidencemap from strings to lists of maps from strings to anyOptional

Errors

400
Bad Request Error
404
Not Found Error
409
Conflict Error