Update a user object (full update)
Replace a user document with a new user's document.
Path Parameters
- username string required
Username
- application/json
Request Body required
New user data
- bio string
Possible values:
non-empty
and<= 64 characters
- location string
Possible values:
non-empty
and<= 16 characters
- name string
Possible values:
non-empty
and<= 32 characters
- url string
Possible values:
<= 64 characters
Responses
- 200
- 400
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- admin boolean
- bio string
- comments_count integer
- confirmed boolean
- email string
- followers string[]
- followers_count integer
- following string[]
- following_count integer
- has_avatar boolean
- last_seen integer
- likes string[]
- likes_count integer
- location string
- member_since integer
- name string
- password string
- submissions_count integer
- type string
- url string
- username string
{
"admin": true,
"bio": "string",
"comments_count": 0,
"confirmed": true,
"email": "string",
"followers": [
"string"
],
"followers_count": 0,
"following": [
"string"
],
"following_count": 0,
"has_avatar": true,
"last_seen": 0,
"likes": [
"string"
],
"likes_count": 0,
"location": "string",
"member_since": 0,
"name": "string",
"password": "string",
"submissions_count": 0,
"type": "string",
"url": "string",
"username": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- details
- message string
- status integer
{
"details": {},
"message": "string",
"status": 0
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
- details
- message string
- status integer
{
"details": {},
"message": "string",
"status": 0
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
- details
- message string
- status integer
{
"details": {},
"message": "string",
"status": 0
}
Loading...