Update lead
PATCH {{baseUrl}}/lead/leads/:id?raw=false
Update lead
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
raw | boolean | Include raw response. Mostly used for debugging purposes |
Request Body
{"name"=>"Elon Musk", "company_name"=>"Spacex", "owner_id"=>"{{primaryOwnerId}}", "owner_name"=>"John Doe", "company_id"=>"{{primaryCompanyId}}", "lead_id"=>"2", "lead_source"=>"Cold Call", "first_name"=>"{{$randomFirstName}}", "last_name"=>"{{$randomLastName}}", "description"=>"A thinker", "prefix"=>"Sir", "title"=>"CEO", "language"=>"EN", "monetary_amount"=>75000, "currency"=>"USD", "fax"=>"+12129876543", "websites"=>[{"url"=>"{{$randomUrl}}", "type"=>"primary"}], "addresses"=>[{"type"=>"primary", "line1"=>"{{$randomStreetAddress}}", "line2"=>"{{$randomDepartment}}", "city"=>"{{$randomCity}}", "state"=>"CA", "postal_code"=>"94104", "country"=>"US", "latitude"=>"{{$randomLatitude}}", "longitude"=>"{{$randomLongitude}}"}, {"type"=>"shipping", "line1"=>"{{$randomStreetAddress}}", "line2"=>"{{$randomDepartment}}", "city"=>"{{$randomCity}}", "state"=>"CA", "postal_code"=>"94104", "country"=>"US", "latitude"=>"{{$randomLatitude}}", "longitude"=>"{{$randomLongitude}}"}], "social_links"=>[{"url"=>"https://twitter.com/apideck-io", "type"=>"twitter"}], "phone_numbers"=>[{"number"=>"{{$randomPhoneNumber}}", "type"=>"primary"}, {"number"=>"{{$randomPhoneNumber}}", "type"=>"fax"}], "emails"=>[{"type"=>"primary", "email"=>"{{$randomEmail}}"}], "tags"=>["{{$randomBsNoun}}", "{{$randomBsNoun}}"], "contact_id"=>"{{primaryContactId}}"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-apideck-consumer-id | string | (Required) ID of the consumer which you want to get or push data from | |
x-apideck-app-id | string | (Required) The ID of your Unify application | |
x-apideck-service-id | string | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"status_code":200,"status":"OK","service":"zoho-crm","resource":"companies","operation":"update","data":{"id":"12345"}}