curl --request POST \
--url https://services.leadconnectorhq.com/opportunities/upsert \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"pipelineId": "bCkKGpDsyPP4peuKowkG",
"locationId": "CLu7BaljjqrEjBGKTNNe",
"followers": "LiKJ2vnRg5ETM8Z19K7",
"isRemoveAllFollowers": true,
"followersActionType": "add",
"id": "yWQobCRIhRguQtD2llvk",
"name": "opportunity name",
"status": "open",
"pipelineStageId": "7915dedc-8f18-44d5-8bc3-77c04e994a10",
"monetaryValue": 220,
"assignedTo": "082goXVW3lIExEQPOnd3",
"lostReasonId": "CLu7BaljjqrEjBGKTNNe"
}
'{
"opportunity": {},
"new": true
}Upsert Opportunity
curl --request POST \
--url https://services.leadconnectorhq.com/opportunities/upsert \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"pipelineId": "bCkKGpDsyPP4peuKowkG",
"locationId": "CLu7BaljjqrEjBGKTNNe",
"followers": "LiKJ2vnRg5ETM8Z19K7",
"isRemoveAllFollowers": true,
"followersActionType": "add",
"id": "yWQobCRIhRguQtD2llvk",
"name": "opportunity name",
"status": "open",
"pipelineStageId": "7915dedc-8f18-44d5-8bc3-77c04e994a10",
"monetaryValue": 220,
"assignedTo": "082goXVW3lIExEQPOnd3",
"lostReasonId": "CLu7BaljjqrEjBGKTNNe"
}
'{
"opportunity": {},
"new": true
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
API Version
2021-07-28 pipeline Id
"bCkKGpDsyPP4peuKowkG"
locationId
"CLu7BaljjqrEjBGKTNNe"
contactId
"LiKJ2vnRg5ETM8Z19K7"
isRemoveAllFollowers
true
followers action type
add, remove "add"
opportunityId
"yWQobCRIhRguQtD2llvk"
name
"opportunity name"
open, won, lost, abandoned, all "7915dedc-8f18-44d5-8bc3-77c04e994a10"
220
"082goXVW3lIExEQPOnd3"
lost reason Id
"CLu7BaljjqrEjBGKTNNe"
Was this page helpful?