Sales::Opportunity
Update Opportunity
Update Opportunity
put/sales/opportunities/{id}
Path parameters
idstring required
Request body
Example request
{
"sales_opportunity": {
"sales_opportunity": {
"name": "Example Opportunity",
"pipelines_stage_id": 123,
"primary_contact_id": 123,
"value": "100.0",
"closed_at": "2025-01-01T00:00:00.000Z",
"assignee_id": 42
}
}
}Response
OK
Example response
{
"id": 17,
"public_id": "eMKZhP",
"name": "Example Opportunity",
"workspace_id": 42000,
"pipeline_id": null,
"pipelines_stage_id": 42,
"primary_contact_id": 26,
"value": "100.0",
"sort_order": 0,
"closed_at": "2025-01-01T00:00:00.000Z",
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z",
"pipeline": {
"id": 3,
"public_id": "KIaXjp",
"name": "Example Pipeline"
},
"pipelines_stage": {
"id": 42,
"public_id": "rebCDY",
"name": "Example Stage"
},
"primary_contact": {
"$ref": "#/components/schemas/ContactBaseAttributes/example"
},
"assignee_id": null,
"notes": [
{
"id": 33,
"public_id": "TNibqR",
"content": "Example note",
"created_by_id": 37,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z"
},
{
"id": 34,
"public_id": "jrHtbW",
"content": "Example note",
"created_by_id": 38,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z"
}
]
}