LMS Collaborator knowledge base

Home/Technical requirements/API/API - Import user photo

API – Import user photo

  • To import a user photo, you need to send POST request to URI /api/v2/users-import/update-photo
  • the request must be accompanied by a file in image format (png, jpg, gif) the uid (External ID) of the user must be specified in the body of the request.
  • The request must contain the words Content-Type: multipart/form-data and Authorization: Bearer xxxxxx.

Request example:

curl 'https://your-domain.davintoo.com/api/v2/users-import/update-photo' -H 'Authorization: Bearer xxxxxx' -H 'Content-Type: multipart/form-data' -F 'uid=some-user-uid' -F 'file=@/path/to/photo.jpg'


  • In case of successful request (HTTP response code - 200), there will be reply in JSON format with information about image:
    "data":{"name": "image.jpg","size": 37800,"extension":"jpg","width": 180, "height": 180...}

  • In case of error (HTTP response code - 400) it returns JSON object with error information.

Still have questions?
Our technical support team is always happy to help!
Write to us at technical support [email protected]. If you are registered on our Helpdesk - send request button below.
Send request