v1
latestOpenAPI 3.0.02026-07-24161215397.4 KBOpportunities
Update opportunity
Update opportunity by id
Required scopes: flex.community.opportunities.update
put/api/v2/organizations/{orgSlug}/opportunities/{opportunityId}
Path parameters
opportunityIdstring required
opportunity id
orgSlugstring required
organization slug
Request body
Example request
{
"properties": {
"customProperty1": "value1",
"customProperty2": "value2"
},
"name": "John Doe 2",
"startDate": "2024-02-08T10:00:00.000Z",
"status": "6a59d07f856fad4ee41952e5"
}Response
Example response
{
"properties": {
"customProperty1": "value1",
"customProperty2": "value2"
},
"_id": "6a59d07f856fad4ee41952d4",
"name": "John Doe",
"company": "6a59d07f856fad4ee41952d5",
"member": "6a59d07f856fad4ee41952d6",
"status": "6a59d07f856fad4ee41952d7",
"probability": 10,
"startDate": "2024-02-08T10:00:00.000Z",
"dealSize": 500,
"membersCount": 5,
"createdAt": "2022-02-07T10:03:33.169Z",
"createdBy": "6a59d07f856fad4ee41952dc",
"modifiedAt": "2022-02-08T10:03:33.169Z",
"modifiedBy": "6a59d07f856fad4ee41952dd"
}