Update contact
PATCH {{baseUrl}}/crm/contacts/:id?raw=false
Update contact
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
raw | boolean | Include raw response. Mostly used for debugging purposes |
Request Body
{"name"=>"Elon Musk", "owner_id"=>"{{primaryOwnerId}}", "type"=>"personal", "company_id"=>"{{primaryCompanyId}}", "company_name"=>"23456", "lead_id"=>"{{primaryLeadId}}", "first_name"=>"{{$randomFirstName}}", "middle_name"=>"D.", "last_name"=>"{{$randomLastName}}", "prefix"=>"Mr.", "suffix"=>"PhD", "title"=>"CEO", "department"=>"Engineering", "language"=>"EN", "gender"=>"female", "birthday"=>"2000-08-12", "image"=>"https://unavatar.io/elon-musk", "photo_url"=>"https://unavatar.io/elon-musk", "lead_source"=>"Cold Call", "fax"=>"+12129876543", "description"=>"Internal champion", "current_balance"=>10.5, "active"=>true, "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}}"}], "email_domain"=>"gmail.com", "tags"=>["{{$randomBsNoun}}", "{{$randomBsNoun}}"], "opportunity_ids"=>["12345", "12345"]}
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":"contacts","operation":"update","data":{"id":"12345"}}