dealdesk.patch_card
Update DealDesk desk cards—stage, owner, company/contact links, estimates, and quote overrides—while syncing linked local case and quote data where applicable.
Instructions
Update a desk card (title, stage, description, ownerUserId, priority, company/contact, deal estimates, quote dealValueOverride). Pass companyId/contactId to link Customer Directory records (same as HTTP accountRef/contactRef). Pass null to clear company/contact/owner. When company/contact or owner changes, also updates a linked local case and quote customer/owner link where applicable (same as the DealDesk UI). estimatedValue / estimatedValueCurrency / estimatedValuePeriod / probabilityPercent update the card (or its linked local case when present). dealValueOverride / dealValueOverrideNet apply only to unaccepted quote cards. Do not call create_case to set estimates on an existing card. Soft close uses stage closed — no DELETE.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Deprecated alias for description — prefer description | |
| stage | No | Desk board column id (not a UI label). Resolve with dealdesk.list_desk_stages. Default board: request, request-in-progress, quote-preparation, quote-sent, quote-accepted, order-processing, order-completed, closed. Soft-close with closed. Never invent ids by slugifying labels (e.g. Anfrage in Bearbeitung → request-in-progress, not anfrage-in-bearbeitung). | |
| title | No | ||
| cardId | Yes | ||
| priority | No | Card priority label (default normal; free text as shown on the desk). | |
| companyId | No | Customer Directory company id to link, or null to clear account and contact | |
| contactId | No | Customer Directory contact id to link, or null to clear contact only | |
| projectId | No | DealDesk project id. Omit when the OAuth token or API key authorizes exactly one project. Required when Connect authorized several projects. | |
| description | No | Card description (main body text shown on the card) | |
| ownerUserId | No | Desk owner user id (from dealdesk.list_desk_users). Pass null on patch_card to clear. When a linked local case exists, owner is synced to that case. | |
| estimatedValue | No | Working forecast amount. Does not rewrite linked quote totals. | |
| deskDescription | No | Local desk-only description | |
| dealValueOverride | No | When true on a quote card that is not yet accepted/ordered, use dealValueOverrideNet instead of quote net on the board/overview (same as the DealDesk UI). Ignored after accept/decline/order. | |
| probabilityPercent | No | Win chance percent (0–100). | |
| dealValueOverrideNet | No | Override net amount for an unaccepted quote card. Cleared when null. Sets dealValueOverride=true when a positive amount is provided without an explicit flag. | |
| estimatedValuePeriod | No | Labels estimatedValue as one-time, monthly, or yearly. Does not convert the amount. Use year for ARR / per-year (e.g. 4000 EUR per year). Defaults to one_time when omitted on create. | |
| estimatedValueCurrency | No | ISO 4217 alpha-3 currency code (e.g. EUR). |