Get Started
Portal api methods
Help

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

Description

Adds the information with the parameters specified in the request to the contact with the selected ID

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

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

Contact information

Example Response

application/json

{
  "status": 0,
  "response": {
    "id": 0,
    "infoType": 1,
    "category": 0,
    "data": "support@onlyoffice.com",
    "categoryName": "Home",
    "isPrimary": true
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <id>0</id>
    <infoType>1</infoType>
    <category>0</category>
    <data>support@onlyoffice.com</data>
    <categoryName>Home</categoryName>
    <isPrimary>true</isPrimary>
  </response>
</result>