Update lead

PATCH {{baseUrl}}/lead/leads/:id?raw=false

Update lead

Request Params

KeyDatatypeRequiredDescription
rawbooleanInclude 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

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"}}