Update opportunity

PATCH {{baseUrl}}/crm/opportunities/:id?raw=false

Update opportunity

Request Params

KeyDatatypeRequiredDescription
rawbooleanInclude raw response. Mostly used for debugging purposes

Request Body

{"title"=>"{{$randomBs}}", "primary_contact_id"=>"{{primaryContactId}}", "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, "close_date"=>"2020-10-30", "loss_reason"=>"No budget", "won_reason_id"=>"12345", "won_reason"=>"Best pitch", "source_id"=>"12345", "lead_id"=>"{{primaryLeadId}}", "lead_source"=>"Website", "contact_id"=>"{{primaryContactId}}", "contact_ids"=>["12345", "12345"], "company_id"=>"{{primaryCompanyId}}", "company_name"=>"Copper", "owner_id"=>"{{primaryOwnerId}}", "priority"=>"None", "tags"=>["{{$randomBsNoun}}", "{{$randomBsNoun}}"], "stage_last_changed_at"=>"2020-09-30T07:43:32.000Z"}

HEADERS

KeyDatatypeRequiredDescription
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-idstringProvide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"status_code":200,"status":"OK","service":"zoho-crm","resource":"companies","operation":"update","data":{"id":"12345"}}