Update quote
update_quoteUpdate a quote: change its status (draft → sent → accepted / lost), link an opportunity, or replace its line items. When you pass lines, the SERVER re-prices from the catalog (you never pass a price) and replaces the whole line set; the quote total is recomputed. Catalog products live on the product object and price from unit_price_cents (integer CENTS) + pricing_mode — per_unit multiplies by quantity, flat charges once (missing/unknown pricing_mode resolves to flat; a flat line with quantity > 1 is flagged). Discounts are by PERCENT only (per-line discount_pct on a line and/or a quote-level discount_pct) and apply when you re-price (pass lines to change a discount). Status/opportunity-only edits don't re-price. Status is exactly draft, sent, accepted, or lost — a quote is a pre-commit artifact (invoicing and contracts happen elsewhere). Returns the updated quote, its priced lines, and any flags.
When to use: When a quote needs to change — move it from draft to sent, mark it accepted or lost, link an opportunity, or swap its items. Passing new items re-prices from the catalog and recomputes the total; you never pass a price.
Example: Mark Acme's quote as sent, and add 5 more units.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | A uuid. | |
| name | No | New display name for the quote; replaces the stored header name. | |
| lines | No | At least one item. | |
| notes | No | New free-text notes for the quote header; replaces the stored notes and never affects pricing. | |
| status | No | One of: draft | sent | accepted | lost. | |
| valid_until | No | Must match /^\d{4}-\d{2}-\d{2}$/. | |
| discount_pct | No | A number from 0 to 100. | |
| opportunity_id | No | Opportunity to link the quote to (must exist in this workspace); null clears the link, omitting leaves it unchanged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| quote | No | ||
| updated | No | ||
| guidance | No | ||
| repriced | No | ||
| line_items | No | ||
| mixed_cadence | No | ||
| missing_objects | No | ||
| tier_validations | No | ||
| annualized_total_cents | No | ||
| pricing_mode_validations | No |