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

Description

Adds the address information to the contact with the ID specified in the request.

Parameters
Name Description Type Example
contactid
sent in url
Contact ID number 1234
address
sent in body
Address data ASC.Api.CRM.Wrappers.Address
Example
POST api/2.0/crm/contact/1234/addressdata
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "address": {}
}
Returns

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>