Skip to content

User Field Values

List of valid attributes:

AttributeDescriptionSpecifics
field_idRelated fieldCannot be set
discarded_atNull or timestamp of removalCannot be set
valueActual value of the recordSee table below

Value-Restrictions for attribute “value”:

Depending on the related field’s field_type, there are different restrictions in place if not empty (value can always be empty to clear the field):

Field-TypeSpecifics
textString
textareaString
emailValid email
numberNumber (only allows integers)
decimalNumber
telString in format +49 123 456789
dateString in format yyyy-MM-dd
cityString
countryString
singleselectArray of strings with length 1
multiselectArray of strings with length n
checkboxBoolean
urlValid url

Update

Example request:

{
"data": {
"type": "user",
"attributes": {
"field_values": [
{
"field_id": "d1866ffe-542f-48db-9730-786c7a894a5e",
"value": "value"
}
]
}
}
}

Example response:

{
"data": [
{
"id": "c3e385f3-7699-4cd3-a458-e101d0f289d7",
"type": "field_value",
"attributes": {
...
}
}
]
}

This endpoint updates a list of the user’s field values.

HTTP Request

PATCH /api/v1/users/:user_id/field_values

URL Parameters

ParameterDescription
user_idThe ID of the user’s field values to update

List

This endpoint returns JSON structured like this:

{
"data": [
{
"id": "c3e385f3-7699-4cd3-a458-e101d0f289d7",
"type": "field_value",
"attributes": {
...
}
},
{
...
}
]
}

This endpoint returns all field_values associated with a user.

HTTP Request

GET /api/v1/users/:user_id/field_values

URL Parameters

ParameterDescription
user_idThe ID of the user from which to return field_values