Change a draft estimate
update_estimateChange an estimate that is a draft or sent and NOT accepted. lines REPLACES every line (read them with get_estimate first); without lines, only the title, message, contract, valid-until date or job site change. Changing a SENT estimate takes it off the client's portal until somebody sends it again, and any approval has to be given again. Usually queued for the account holder to approve (read staged).
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": {
"estimate_id": "<estimate_id>"
},
"name": "update_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| title | No | ||
| contract | No | ||
| entity_id | No | Another entity in the same books (ids from `list_entities`). Leave out to use the entity the person is working in. | |
| customer_id | No | A different client (needs `lines`). | |
| estimate_id | Yes | From `list_estimates`. | |
| property_id | No | One of the client's service addresses — the job site. | |
| valid_until | No | ISO date. | |
| deposit_percent | No | Needs `lines`. | |
| message_to_client | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The created or updated record's id, when the write was applied rather than staged. | |
| note | No | Why the result was truncated, when it was. | |
| staged | No | TRUE means nothing has changed yet — the write is queued in the account holder's Approvals queue in Seayora. Say it is waiting for approval; never report it as done. | |
| draft_id | No | The staged proposal's id, when it was queued rather than performed. | |
| truncated | No | Present and true when the result was too large to return in full. Treat it as a partial answer. | |
| total_available | No | How many rows existed before truncation. |