Users
Upload profile photo
Changed onUploads a profile photo for the specified user. The file is stored in the tenant-scoped files table. If the user already has a profile photo, the old one is deleted and replaced. Uses multer for multipart file handling.
post/users/{id}/profile-photo
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/users/{id}/profile-photo
- AuthHTTP bearer
Path parameters
idinteger required
User ID
Request body multipart/form-data
Response
Profile photo uploaded
Example response
{
"message": "OK"
}Changes
- info
api operation id
uploadUserProfilePhotowas added - info
api tag
Usersadded - info
api tag
Users - Profile Photoremoved
- info
- info
api operation id
uploadUserProfilePhotoremoved and replaced with - info
api tag
Users - Profile Photoadded - info
api tag
Usersremoved
- info