PUT api/2.0/mail/contact/update This function requires authentication

Description

Updates a mail contact with the ID specified in the request.

Parameters
Name Description Type Example
id
sent in body
Mail contact ID number 1234
name
sent in body
New contact name string some text
description
sent in body
New contact description string some text
emails
sent in body
New list of contact emails Collection of strings some text
phoneNumbers
sent in body
New list of contact phone numbers Collection of strings some text
Example
PUT api/2.0/mail/contact/update
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "id": 1234,
  "name": "some text",
  "description": "some text",
  "emails": [
    "some text"
  ],
  "phoneNumbers": [
    "some text"
  ]
}
Returns

Information about updated contact

Example Response

application/json

{
  "status": 0,
  "response": {
    "id": 1234,
    "name": "name",
    "description": "description",
    "emails": [
      {
        "id": 1234,
        "value": "value",
        "isPrimary": true
      }
    ],
    "phones": [
      {
        "id": 1234,
        "value": "value",
        "isPrimary": true
      }
    ],
    "type": 1234,
    "smallFotoUrl": "smallFotoUrl",
    "mediumFotoUrl": "mediumFotoUrl"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <id>1234</id>
    <name>name</name>
    <description>description</description>
    <emails>
      <id>1234</id>
      <value>value</value>
      <isPrimary>True</isPrimary>
    </emails>
    <phones>
      <id>1234</id>
      <value>value</value>
      <isPrimary>True</isPrimary>
    </phones>
    <type>1234</type>
    <smallFotoUrl>smallFotoUrl</smallFotoUrl>
    <mediumFotoUrl>mediumFotoUrl</mediumFotoUrl>
  </response>
</result>