Add avatar
POST/users/:user_id/avatar
Upload avatar image
Request
Path Parameters
user_id stringrequired
Header Parameters
Content-Type stringrequired
Example: multipart/form-data
Accept stringrequired
Example: application/json
- multipart/form-data
Body
file binaryrequired
(Required)
Responses
- 200
- 400
- 401
Response Headers
- application/json
- Schema
- Example (from schema)
- 1
Schema
status stringrequired
image stringrequired
{
"status": "string",
"image": "string"
}
OK
{
"status": "<string>",
"image": "<string>"
}
Response Headers
- application/json
- Schema
- Example (from schema)
- 1
Schema
status stringrequired
{
"status": "string"
}
Bad Request
{
"status": "<string>"
}
Response Headers
- application/json
- Schema
- Example (from schema)
- 1
Schema
status stringrequired
{
"status": "string"
}
Unauthorized
{
"status": "<string>"
}
Loading...