Change the order draft
update_order_draftChange a Plumbline order draft the way the buyer asked: add, update, remove or replace companies (name an item by its key from the draft, or by match on its name), or clear the list (item fields: name (the company's name as the buyer has it, or its exact legal name); country (ISO 3166 two-letter code; narrows the LEI search by name); lei (20-character Legal Entity Identifier; the report then reads that exact record); cik (SEC Central Index Key; adds the SEC EDGAR registration (EDGAR is not searched by name))). The app in the conversation shows the change at once. A placed order is never changed (the draft is locked); a change after the request was sent is a revision the buyer sends again with send_order_draft. Repeat a call with the same op_id and it is applied once.
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": {
"id": "<id>",
"token": "<token>",
"ops": "<ops>"
},
"name": "update_order_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The draft id | |
| ops | Yes | ||
| op_id | No | Your id for this change, so a retry is applied once | |
| token | Yes | The draft's private token (also the receipt token of every request sent from it); keep it private | |
| from_app | No | Set only by the app itself | |
| base_revision | No | The revision you read |