LMS Collaborator knowledge base

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

API – Import user photo

See API – Authorization

  • 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 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 '[email protected]/path/to/photo.jpg'

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