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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"expectedVersion": "<expectedVersion>",
"document": "<document>"
},
"name": "update_company"
}
}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. |