PUT api/2.0/crm/contact/{contactid}/avatar
Uploads an avatar of the contact with the ID specified in the request from the social network.
Name |
Description |
Type |
Example |
contactId
sent in url
|
Contact ID
|
number
|
1234
|
socialNetwork
sent in body
|
Contact social network
|
Twitter
|
twitter
|
userIdentity
sent in body
|
User identity
|
string
|
some text
|
uploadOnly
sent in body
|
Defines whether to upload an avatar only or also save it to a folder
|
Bool value
|
true
|
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
}
application/json
{
"status": 0,
"response": {
"Url": "url",
"Path": "path"
}
}
text/xml
<result>
<status>0</status>
<response>
<Url>url</Url>
<Path>path</Path>
</response>
</result>