Set custom fields

PATCH /v1/client/auth/custom-fields

This endpoint is used to set custom fields for the user. The custom fields are used to store additional information about the user. Only fields that have not previously been set can be set.

application/json

Body Required

  • custom_fields array[object] Required
    Hide custom_fields attributes Show custom_fields attributes object

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/auth/custom-fields
curl \
 -X PATCH https://api.bitlabs.ai/v1/client/auth/custom-fields \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"custom_fields":[{"id":"string","value":"string"}]}'
Request examples
{
  "custom_fields": [
    {
      "id": "string",
      "value": "string"
    }
  ]
}
Response examples (200)
{
  "data": {}
}
Response examples (406)
{
  "error": {
    "details": {
      "msg": "vpn detected",
      "http": "406 Not Acceptable"
    }
  }
}