Update Deal
update_dealWon and lost are statuses, not stages: use status='won' / 'lost', and status='open' to reopen. Deleting (archived=true) hides the deal everywhere but keeps it, so archived=false brings it back. The updated deal, same shape as a query_deals row.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name. | |
| clear | No | Fields to empty: 'amount', 'expected_close_date', 'person', 'company'. A deal must keep a person or a company. | |
| notes | No | Replace the notes entirely. To add to them, use notes_append instead. | |
| stage | No | Move to this stage, by name or id. | |
| amount | No | New value as a plain number, e.g. 15000. | |
| status | No | 'open', 'won', or 'lost'. | |
| deal_id | Yes | The deal's id (query_deals). | |
| archived | No | true deletes the deal (reversible), false restores it. A deleted deal can only be changed in a call that also restores it (archived=false). | |
| person_id | No | Link this person instead (query_people `id`). | |
| company_id | No | Link this company instead (query_companies `id`). | |
| notes_append | No | Add this as a new paragraph at the end of the notes. | |
| assignee_email | No | New owner, an active teammate's email from list_teammates (not an invited one). | |
| expected_close_date | No | YYYY-MM-DD. |