Update a contact
PATCH {{baseUrl}}/api/v1/contacts/:contact_id
This API updates details of an existing contact.
OAuth Scope
Desk.contacts.UPDATE
Attributes
Attribute Name | Data Type | Description |
---|---|---|
customFields | <object> | User-defined fields related to the contact |
cf | <JSONObject> | User-defined fields related to the contact |
lastName | <string> max chars : 200 | Last name of the contact |
firstName | <string> max chars : 100 | First name of the contact |
<string> max chars : 300 | Facebook ID of the contact | |
<string> max chars : 300 | Twitter ID of the contact | |
secondaryEmail | <string> max chars : 100 | Secondary email ID of the contact |
<string> max chars : 255 | Email ID of the contact | |
phone | <string> max chars : 100 | Phone number of the contact |
mobile | <string> max chars : 100 | Mobile number of the contact |
city | <string> max chars : 100 | Contact's city of residence |
country | <string> max chars : 100 | Contact's country of residence |
state | <string> max chars : 100 | Contact's state of residence |
street | <string> max chars : 250 | Contact's address |
zip | <string> max chars : 100 | Zip code |
description | <string> max chars : 65535 | Contact description |
title | <string> max chars : 120 | Contact title |
type | <string> max chars : 120 | Contact type |
ownerId | <long> | ID of the user who creates the contact |
accountId | <long> | Account to which the contact is mapped |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"lastName":"john","modifiedTime":"2016-07-26T13:11:02.000Z","country":"USA","secondaryEmail":"stephen@zylker.com","city":"Texas","description":"first priority contact","ownerId":"1892000000056007","type":"paidUser","title":"The contact","photoURL":null,"twitter":"stephen john","isDeleted":false,"isTrashed":false,"street":"East street","createdTime":"2016-07-26T13:11:02.000Z","zohoCRMContact":null,"state":"Austin","id":"1892000001128052","customerHappiness":{"badPercentage":"0","okPercentage":"0","goodPercentage":"0"},"email":"stephent@zylker.com","zip":"123902","cf":{"cf_permanentaddress":null,"cf_lastcontactedon":null},"isFollowing":"true","facebook":"Steve john","mobile":"+129737289298","accountId":"1892000000052077","firstName":"Stephen","isAnonymous":"false","phone":"8981901921","webUrl":"https://desk.zoho.com/support/zylker/ShowHomePage.do#Contacts/dv/d126330fb061247d9ebddaeb9d93ba74750b0284bc703b38","isSpam":false}