Upload profile photo
Uploads 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.
Path parameters
User ID
Response
Profile photo uploaded
Example response
{
"message": "OK"
}Changes
Changed in 6 of the 70 revisions of this API.418
- ○
api operation id
uploadUserProfilePhotowas addedapi-operation-id-added
- ○
api tag
Usersaddedapi-tag-added
- ○
api tag
Users - Profile Photoremovedapi-tag-removed
- ○
- ○
api operation id
uploadUserProfilePhotoremoved and replaced withapi-operation-id-removed
- ○
api tag
Users - Profile Photoaddedapi-tag-added
- ○
api tag
Usersremovedapi-tag-removed
- ○
- ○
api operation id
uploadUserProfilePhotowas addedapi-operation-id-added
- ○
api tag
Usersaddedapi-tag-added
- ○
api tag
Users - Profile Photoremovedapi-tag-removed
- ○
- ▲
request body became required
request-body-became-required
- ▲
removed the media type
application/jsonfrom the request bodyrequest-body-media-type-removed
- ▲
removed the success response with the status
201response-success-status-removed
- ○
api operation id
uploadUserProfilePhotoremoved and replaced withapi-operation-id-removed
- ○
api tag
Users - Profile Photoaddedapi-tag-added
- ○
api tag
Usersremovedapi-tag-removed
- ○
added the media type
multipart/form-datato the request bodyrequest-body-media-type-added
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
added the non-success response with the status
403response-non-success-status-added
- ○
removed the non-success response with the status
401response-non-success-status-removed
- ○
added the success response with the status
200response-success-status-added
- ▲
- ○
endpoint added
endpoint-added
This revision also has 41 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 300 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲