Upload an avatar for a user (png/jpg/jpeg file, max 5MB)
Upload an avatar for a user (png/jpg/jpeg file, max 5MB)
Path Parameters
id string required
The ID of the user to upload the avatar for
image/png
image/jpg
image/jpeg
Request Body
string
Request Body
string
Request Body
string
Responses
- 204
- 400
- 401
- 403
- 404
- 413
- 415
- 500
Successfully uploaded the avatar
Invalid request body
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
errors object[]
code string
Human readable error code
message string
Human readable error message
detail string
Human readable error detail
{
"errors": [
{
"code": "ERROR_CODE",
"message": "An error occurred while calling the endpoint",
"detail": "View more info at developers.rinkel.com"
}
]
}
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
Loading...