/api/2.0/opportunities/{PK}/
PUT https://developer.salesfusion.com/api/2.0/opportunities/PK}/
Description:
Modifies an existing opportunity. If the specified opportunity does not exist a new opportunity will be created.
PK → Opportunity_ID
Sample Response:
{
"name": "Example Opp",
"owner_name": "Michael North",
"owner_id": 2,
"owner": "https://developer.salesfusion.com/api/2.0/users/2/",
"contact_id": null,
"contact": null,
"account_id": null,
"account": null,
"created_date": "2018-12-19T14:31:00.193000Z",
"created_by_id": 2,
"created_by": "https://developer.salesfusion.com/api/2.0/users/2/",
"updated_date": "2018-12-19T14:31:00.193000Z",
"updated_by_id": 2,
"updated_by": "https://developer.salesfusion.com/api/2.0/users/2/",
"est_closing_date": null,
"closing_date": null,
"probability": "",
"shared_opp": "",
"opp_type": "",
"amount": "0.00",
"description": "",
"product_name": "",
"crm_id": "",
"lead_source": "",
"lead_source_originator": "",
"sub_lead_source": "",
"sub_lead_source_originator": "",
"stage": "",
"next_step": "",
"action_steps_complete": "",
"custom_fields": {
"ExternalCRMUpdatedDate": null,
"SF_Description": null,
"ExternalCRMCreatedDate": null
}
}
Request Body
{"name"=>"TJs new opportunity"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |