v1
latestOpenAPI 3.1.02026-07-2419603.1 MBData Activation
Create custom attribute
Creates a new custom attribute. Requires manage permission.
post/api/cdp/settings/v1/app/{app_id}/attribute
Path parameters
app_idstring uuid required
ID of the app.
Example:3929d56c-cd62-4001-a4fc-013f5f954691
Request body
Example request
{
"name": "Age of the user",
"data_type": "string",
"aggregation": "first"
}Response
Created
Example response
{
"column_id": "custom_attribute_3",
"data_type": "string",
"aggregation": "first",
"event_data_key": "user_age",
"column_meta": {
"column_name": "User's Age",
"column_type": "number",
"column_category": [
"Custom attribute"
],
"value_selectors": [
"first"
],
"extractions": [
"first"
],
"scope": "profile"
}
}