Upload an avatar for a user (png/jpg/jpeg file, max 5MB)
PUT/users/:id/avatar
Upload an avatar for a user (png/jpg/jpeg file, max 5MB)
Request
Responses
- 204
- 400
- 401
- 403
- 404
- 413
- 415
- 500
Successfully uploaded the avatar
Invalid request body
Unauthorized
Forbidden
The user was not found
The avatar exceeds the maximum file size of 5MB
The avatar is not a png/jpg/jpeg file
Internal Server Error