PUT api/2.0/crm/contact/{contactid}/data/{id} This function requires authentication

Description

Updates the contact information with the parameters specified in the request.

Parameters
Name Description Type Example
id
sent in url
Contact information record ID number 1234
contactid
sent in url
Contact ID number 1234
infoType
sent in body
New contact information type
optional
Phone, Email, Website, Skype, Twitter, LinkedIn, Facebook, Address, LiveJournal, MySpace, GMail, Blogger, Yahoo, MSN, ICQ, Jabber, AIM, VK Phone
data
sent in body
New data string some text
isPrimary
sent in body
New contact information importance: primary or not
optional
Bool value true
category
sent in body
New contact information category
optional
string some text
Example
PUT api/2.0/crm/contact/1234/data/1234
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "infoType": "phone",
  "data": "some text",
  "isPrimary": true,
  "category": "some text"
}
Returns

Updated contact information

Example Response

application/json

{
  "status": 0,
  "response": {
    "InfoType": 1,
    "Category": 0,
    "Data": "support@onlyoffice.com",
    "CategoryName": "Home",
    "IsPrimary": true,
    "id": 1234
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <InfoType>1</InfoType>
    <Category>0</Category>
    <Data>support@onlyoffice.com</Data>
    <CategoryName>Home</CategoryName>
    <IsPrimary>True</IsPrimary>
    <id>1234</id>
  </response>
</result>