update_company
Replaces the entire company draft with a new version, handling conflicts by reading the current version and retrying on failure. The draft is written for later manual publishing.
Instructions
Save the company draft as a WHOLE document (full-document PUT, not a field merge). Read it first for its version; on a 409 conflict re-read and retry. This writes the draft only — a human publishes it in Axonity (company is not part of the request_publish_* approval flow).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | The complete company document to persist (as read_company returns it). | |
| expectedVersion | Yes | The version you last read — rejected with 409 if stale. |