Get Started
Usage API
More information

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

Description

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

{
  "address": {}
}
Returns

Contact information with the updated address

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>