API reference/Opportunities
Update opportunity
Updates an opportunity by its id and returns the updated record, including any change to its stage or value.
Authorization
AuthorizationRequiredBearer <token>API key as Bearer token: Authorization: Bearer sk_live_.... Use sk_live_ prefixed keys for production data and sk_test_ prefixed keys for sandbox/test data.
In: header
X-API-Key<token>API key via header: X-API-Key: sk_live_.... Use sk_live_ prefixed keys for production data and sk_test_ prefixed keys for sandbox/test data.
In: header
Request Body
application/jsonRequiredtitlestringdescriptionstringvaluestringDecimal as string
stagestringDefault:
"discovery"Value in: "discovery" | "qualification" | "technical_evaluation" | "proposal" | "negotiation" | "closed_won" | "closed_lost"probabilityintegerMinimum:
0Maximum: 100expectedCloseDatestringFormat:
"date-time"accountIdstringFormat:
"uuid"leadSourcestringValue in:
"website" | "referral" | "cold_outreach" | "marketing" | "trade_show" | "partner"dealSizestringValue in:
"small" | "medium" | "large" | "enterprise"Path Parameters
idRequiredstringResource ID
Format:
"uuid"Updated opportunity