Data Attributes
Update a data attribute
You can update a data attribute.
🚧 Updating the data type is not possible
It is currently a dangerous action to execute changing a data attribute's type via the API. You will need to update the type via the UI instead.
put/data_attributes/{data_attribute_id}
Path parameters
data_attribute_idinteger required
The data attribute id
Headers
Intercom-Version'1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '2.0' | '2.1' | '2.2' | '2.3' | '2.4' | '2.5' | '2.6' | '2.7' | '2.8' | '2.9' | '2.10' | '2.11' | '2.12' | '2.13' | '2.14'
Intercom API version.</br>By default, it's equal to the version set in the app package.
Example:2.14
Request body
Example request
{
"description": "My Data Attribute Description",
"options": [
{
"value": "1-10"
},
{
"value": "11-50"
}
]
}Response
Successful
Example response
{
"type": "data_attribute",
"id": 12878,
"model": "contact",
"name": "paid_subscriber",
"full_name": "custom_attributes.paid_subscriber",
"label": "Paid Subscriber",
"description": "Whether the user is a paid subscriber.",
"data_type": "boolean",
"options": [
"true",
"false"
],
"api_writable": true,
"ui_writable": true,
"custom": true,
"created_at": 1671028894,
"updated_at": 1671028894,
"admin_id": "5712945"
}