Contract Intelligence

Restore the extracted value of a cell

Take a hand edit off one cell and put the value the scan extracted back. This does not clear the cell: it restores the AI value, along with the source citations and reasoning the edit had been hiding.

A cell with no hand edit on it returns 404. So does a cell that was edited and already reverted, and a column that has no value on this document at all. The three are indistinguishable in the response, so treat the 404 as "there is nothing to put back" rather than as a missing document.

A manual column returns 400. Every value in a manual column was typed by a person, so there is no analyzed value to go back to.

A document that belongs to another vault returns 404, even when the caller can reach both vaults.

Requires the editor or owner role in the vault and the organization-level permission to manage vaults. An archived vault returns 409: restore it first. A document that was deleted, or auto-removed as a duplicate copy, also returns 409, and so does a document stored before GC AI split bundled uploads, which has no cells of its own to write.

Requires a user-scoped API key (u:gcai_...). A vault is shared with named people, so an organization-scoped key has no identity to resolve vault access with.

post/vaults/{id}/documents/{documentId}/cells/{fieldKey}/revert

Request

Path parameters

idstring uuid required

The vault ID

documentIdstring uuid required

The document_id of a row from GET /vaults/{id}/documents.

fieldKeystring required

Column key, as the vault reports it for its columns. A key, not a label: governingLaw, not Governing law. Percent-encode it if it holds a character a URL path reserves.

Example:governingLaw

Response

The restored cell

document_idstring uuid required

Document the cell belongs to

field_keystring required

Column key for the cell

extracted_atstring nullable required

ISO 8601 timestamp of the last write that set a value on this cell. A revert restores the scanned value without restamping it, so after a revert this is still the time of the edit that was undone, not the time of the original scan.

Example response

{
  "cell": {
    "value": "Delaware"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.