PUT api/2.0/crm/contact/{contactid}/data/{id}
Updates the contact information with the parameters specified in the request.
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
|
ASC.CRM.Core.ContactInfoType
|
|
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
|
PUT api/2.0/crm/contact/1234/data/1234
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"infoType": null,
"data": "some text",
"isPrimary": null,
"category": "some text"
}
Updated contact information
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>