Skip to main content
PATCH
/
api
/
v1
/
users
/
{user_id}
Update User
curl --request PATCH \
  --url https://api.example.com/api/v1/users/{user_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "password": "<string>",
  "is_admin": true,
  "is_playing": true,
  "robot_ip": "<string>"
}
'
{
  "id": 123,
  "name": "<string>",
  "is_admin": true,
  "is_playing": true,
  "eliminated": true,
  "robot_ip": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
integer
required

Body

application/json
password
string | null
is_admin
boolean | null
is_playing
boolean | null
robot_ip
string | null

Response

Successful Response

id
integer
required
name
string
required
is_admin
boolean
required
is_playing
boolean
required
eliminated
boolean
required
robot_ip
string | null
required