PUT
/
base
/
user
Update information of current user.
curl --request PUT \
  --url https://api.coinfer.ai/base/user \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "new_password": "<string>",
  "password": "<string>"
}'
{
  "status": "<string>",
  "data": {
    "id": 123,
    "username": "<string>",
    "super": true,
    "roles": [
      "<string>"
    ],
    "is_github_user": true
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
new_password
string | null
password
string | null

Response

OK

status
string
required
Allowed value: "ok"
data
object
required