Get Started
Usage API
More information

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

Description

Uploads an avatar of the contact with the ID specified in the request from the social network.

Parameters
Name Description Type Example
contactId
sent in url
Contact ID number 1234
socialNetwork
sent in body
Contact social network Twitter
userIdentity
sent in body
User identity string some text
uploadOnly
sent in body
Defines if an avatar is already uploaded or not Bool value true
Example
PUT api/2.0/crm/contact/1234/avatar
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "socialNetwork": "twitter",
  "userIdentity": "some text",
  "uploadOnly": true
}
Returns

Avatar