v1
latestOpenAPI 3.0.12026-07-268028223.9 KBOpportunities
Update an opportunity
Update an existing opportunity for a household. To move stages, set pipeline_stage_id. The stage must belong to the opportunity pipeline; PATCH does not accept pipeline_id. There is no cross-pipeline move endpoint; create a new opportunity in the target pipeline.
patch/v1/households/{household_id}/opportunities/{id}
Path parameters
idstring required
The opportunity ID
Headers
Idempotency-Keystring
Unique key to ensure idempotent request handling. If a request with the same key was already processed, the original response will be returned.
Request body
Example request
{
"name": "Updated opportunity",
"value": 750000,
"probability": 80
}Response
opportunity updated
Example response
{
"id": "abc123xyz",
"name": "New Investment Opportunity",
"value": 5000,
"probability": 75,
"book_id": "book123xyz",
"household_id": "household123xyz",
"pipeline": {
"id": "pipeline123xyz",
"name": "Sales Pipeline",
"pipeline_type": "prospect",
"book_id": "book123xyz",
"pipeline_stages": [
{
"id": "stage123xyz",
"name": "Qualified",
"stage_order": 1,
"visible": true,
"default_probability": 50
}
]
},
"pipeline_stage": {
"id": "stage123xyz",
"name": "Qualified",
"stage_order": 1,
"visible": true,
"default_probability": 50
},
"custom_fields": {
"lead_source": "Referral"
},
"assigned_to": {
"id": "abc123xyz",
"email": "user@example.com",
"first_name": "John",
"last_name": "Doe",
"api_access": {
"auth_type": "personal_access_token",
"scope": "read_write"
}
}
}