Skip to main content
POST
Rate limit tier: general, 600 requests/min. See Rate limits. Sets the value of one field of one extraction, as a person reviewing it in the app would, and answers 204 No Content. extraction_id is the id of an entry of results.extractions in Get run. One extraction belongs to one workflow version, so a name picks exactly one field.

Naming the field

Name the field by its key in the results (sanitized_name) or by its persistent_id, not both. Send the key you just read, or the persistent_id if you keep ids: it survives a rename. A field’s persistent_id is the one Get workflow returns for it. A column key is unique only within its table, so column goes with the table’s sanitized_name. row_index counts from 0. A cell of a table is named by a column and a row: the table alone, or a column without its row_index, answers 400.

The value

value is required. Send null to empty the field. Today the API takes the value as a string or null, the form Get run returns. Treat value as the field’s value in whatever type results return for it: a later release can accept numbers, booleans, dates and lists in the same key, and refuse a value that does not fit the field’s type. A value that is the same text as the original verifies the field. Any other value marks it human_edited. A yes/no field set back to its original answer still counts as an edit when the text differs, such as "true" and "True". value_unit is not part of the public request.

What else the edit does

  • On a dataset document whose extraction is fully verified, the edit rewrites the document’s ground truth.
  • A document with an assigned verifier refuses every other user with 403 NOT_ASSIGNED_VERIFIER. The key acts as its owner.
  • The edit changes the stored results only. It does not run the workflow again.

Errors

Authorizations

Authorization
string
header
required

API key issued from app.anyformat.ai/api-key. Send as Authorization: Bearer <key>.

Path Parameters

extraction_id
string
required

Body

application/json

Body for POST /v3/extractions/{extraction_id}/fields/edit/.

value
string | null
required

The corrected value, or null for an empty one. Send the type that results returns for the field. Today every value is a string, and a later release can return numbers, booleans, dates or lists in the same key. A yes/no field edited back to its original answer still counts as an edit when the text differs, as "true" and "True" do.

Example:

"4594.62"

sanitized_name
string | null

The field's key in results.extractions[].fields. Name the field by this or by persistent_id, not both. Inside a table, the table's key.

Example:

"holdings"

persistent_id
string | null

The field's persistent_id, which survives a rename. Name the field by this or by sanitized_name, not both. Inside a table, the column's own persistent_id.

Example:

"0686bb978c3070f0800097669e00aaaa"

column
string | null

The column's key inside the table that sanitized_name names. A column key is unique only within its table. Send it only with sanitized_name; a persistent_id already names the column.

Example:

"quantity"

row_index
integer | null

The position of the row in the table, from 0. Send it for a table column, and use 0 for a column of a single object. Omit it for a field that is not in a table.

Required range: x >= 0
Example:

2

Response

Successful Response