Opportunities
Update opportunity
Update opportunity
patch/crm/opportunities/{id}
Path parameters
idstring required
ID of the record you are acting upon.
Query parameters
rawboolean
Include raw response. Mostly used for debugging purposes
Headers
x-apideck-consumer-idstring required
ID of the consumer which you want to get or push data from
x-apideck-app-idstring required
The ID of your Unify application
x-apideck-service-idstring
Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
Request body
Example request
{
"id": "12345",
"title": "New Rocket",
"primary_contact_id": "12345",
"description": "Opportunities are created for People and Companies that are interested in buying your products or services. Create Opportunities for People and Companies to move them through one of your Pipelines.",
"type": "Existing Customer - Upgrade",
"monetary_amount": 75000,
"currency": "USD",
"win_probability": 40,
"expected_revenue": 75000,
"close_date": "2020-10-30",
"loss_reason_id": "12345",
"loss_reason": "No budget",
"won_reason_id": "12345",
"won_reason": "Best pitch",
"pipeline_id": "12345",
"pipeline_stage_id": "12345",
"source_id": "12345",
"lead_id": "12345",
"lead_source": "Website",
"contact_id": "12345",
"contact_ids": [
"12345"
],
"company_id": "12345",
"company_name": "Copper",
"owner_id": "12345",
"priority": "None",
"status": "Open",
"status_id": "12345",
"tags": [
"New"
],
"custom_fields": [
{
"id": "2389328923893298",
"name": "employee_level",
"description": "Employee Level",
"value": "Uses Salesforce and Marketo"
}
],
"stage_last_changed_at": "2020-09-30T07:43:32.000Z",
"last_activity_at": "2020-09-30T07:43:32.000Z",
"date_stage_changed": "2020-09-30T00:00:00.000Z",
"date_last_contacted": "2020-09-30T00:00:00.000Z",
"date_lead_created": "2020-09-30T00:00:00.000Z",
"updated_by": "12345",
"created_by": "12345",
"updated_at": "2020-09-30T07:43:32.000Z",
"created_at": "2020-09-30T07:43:32.000Z",
"pass_through": [
{
"extend_paths": [
{
"path": "$.nested.property",
"value": {
"TaxClassificationRef": {
"value": "EUC-99990201-V1-00020000"
}
}
}
]
}
]
}Response
Opportunity updated
Example response
{
"status_code": 200,
"status": "OK",
"service": "zoho-crm",
"resource": "companies",
"operation": "update",
"data": {
"id": "12345"
}
}