201, a replace answers 200, and both return the stored document in the shape Get ground truth returns.
Send the complete document in ground_truth: every field of the workflow must be present. A list field may be [] and any value may be null. Keys are the workflow schema’s field identifiers: use persistent_id (the API also accepts sanitized_name). The stored document is always keyed by persistent_id. A scalar field maps to string | null; a table or object field maps to an array of row objects keyed the same way.
Omit version_id to write to the workflow’s current version, the one an eval grades by default. node_id is the extract node’s id in the workflow graph, required only when the version has more than one extract node.
Only a dataset document packet holds ground truth. A production packet answers 409 NOT_IN_DATASET: upload the document to the dataset and set ground truth on the packet it returns.

