User avatar
Requests
HTTP verb | Endpoint | Description |
---|---|---|
|
|
|
|
|
|
|
|
For all requests:
Domain Type: any
Retrieving user avatar
Returns the user’s avatar image.
If the '&attachment=true' parameter is added to the request URL, the file is downloaded as an attachment. Otherwise, the file is returned with the content type corresponding to the file extension.
Avatar information and image metadata are present in user info in the field 'avatar_info'.
Uploading user avatar image
Allows you to upload an image file to be used as the user’s avatar.
On successful upload, meta information about the file is put into the user properties (field 'opts.avatar_info').
It’s available in /rest/v1/user/info.
Files up to 200 KB in size are allowed for uploading.
Deleting a user’s avatar image
Allows you to delete the image file used as the user’s avatar.
The meta-information about the file in user info is replaced by the value of 'false'.