Update user

PATCH /v1/client/user

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

  • username
  • marketing
application/json

Body Required

  • username string

    The new username for the user.

  • marketing object
    Hide marketing attributes Show marketing attributes object
    • appsflyerId string

      The appsflyer id correlated with this user.

    • advertisingId string

      The advertising id of the user's Android device.

    • ip string

      The client ip.

    • platform string

      The client platform

      Values are ANDROID or IOS.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data object
  • 406 application/json

    VPN detected

    Hide response attribute Show response attribute object
    • data object
PATCH /v1/client/user
curl \
 --request PATCH 'https://api.bitlabs.ai/v1/client/user' \
 --header "X-Api-Token: $API_KEY" \
 --header "X-User-Id: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"username":"abc1234999","marketing":{"appsflyerId":"1341324-fqewfqewf","advertisingId":"0746da22-9058-4e07-b4d3-da565a878a49","ip":"66.60.226.104","platform":"ANDROID"}}'
Request examples
{
  "username": "abc1234999",
  "marketing": {
    "appsflyerId": "1341324-fqewfqewf",
    "advertisingId": "0746da22-9058-4e07-b4d3-da565a878a49",
    "ip": "66.60.226.104",
    "platform": "ANDROID"
  }
}
Response examples (200)
{
  "data": {}
}
Response examples (406)
{
  "error": {
    "details": {
      "msg": "vpn detected",
      "http": "406 Not Acceptable"
    }
  }
}