Update user

PATCH /v1/client/user

Update User allows to update the user's profile. The following fields can be updated:

  • username
application/json

Body Required

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data object

      Additional properties are allowed.

  • 406 application/json

    VPN detected

    Hide response attribute Show response attribute object
    • data object

      Additional properties are allowed.

PATCH /v1/client/user
curl \
 -X PATCH https://api.bitlabs.ai/v1/client/user \
 -H "X-Api-Token: $API_KEY" \
 -H "X-User-Id: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"username":"string"}'
Request examples
{
  "username": "string"
}
Response examples (200)
{
  "data": {}
}
Response examples (406)
{
  "error": {
    "details": {
      "msg": "vpn detected",
      "http": "406 Not Acceptable"
    }
  }
}