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.
Body Required
-
custom_fields array[object] Required
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 example
{
"custom_fields": [
{
"id": "string",
"value": "string"
}
]
}
Response examples (200)
{
"data": {}
}
Response examples (406)
{
"error": {
"details": {
"http": "406 Not Acceptable",
"msg": "vpn detected"
}
}
}