Set 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
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"
}
}
}