Apply a human-selected Compare decision
Used only by the human review workspace after a person selects a decision. action=pull_to_base adds selected changes to the version identified by base_document_id. action=revert_in_compare removes selected changes from the version identified by compare_document_id. Omit difference_ids to apply to all unresolved differences.
/documents/compare/apply Headers
Authorizationstring RequiredBearer <session token>: the signed-in user’s Scaffold session token.
x-org-idstring Required
Body
compare_idstringDurable compare session id. Preferred for multi-step workflows.
base_document_idstringDocument/version id where changes should be added. Required only when compare_id is omitted.
compare_document_idstringDocument/version id that contains the changes. Required only when compare_id is omitted.
actionstring RequiredOne of
pull_to_baserevert_in_comparedifference_idsstring[]Difference ids to apply. Omit or pass [] to apply all unresolved differences.