PUT api/2.0/crm/contact/{contactid}/addressdata/{id}
Updates the contact address information with the parameter 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
|
address
sent in body
|
New address data
|
ASC.Api.CRM.Wrappers.Address
|
|
PUT api/2.0/crm/contact/1234/addressdata/1234
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"address": {}
}
Contact information with the updated address
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>