Used to create a new tag or an attribute. Once created this can be updated using tag/tags methods or the profile import method.
For more information on attributes and tags review our dedicated guide.
Type identifiers
Attribute value types are created and displayed by their identifier:
| Type ID | Type name |
|---|---|
| 0 | String |
| 1 | Number (legacy) |
| 2 | Date (legacy) |
| 3 | JSON (legacy) |
| 4 | Boolean |
| 5 | Number |
| 6 | Integer |
| 7 | Date |
| 8 | DateTime |
| 9 | Array |
| 10 | Object |
{
"apptoken": "YOUR_APPTOKEN",
"title": "first_purchase",
"name": "first purchase",
"type": "0",
"attribute_profile": "1",
"attribute_client": "0"
}Your App token
Name of the attribute or tag used when setting it programmatically via an SDK/API call
Name displayed in the UI, used for a more human-friendly explainer
Required for an attribute. See Type identifiers.
Name of the tag for which this is an alias
Link attribute to User Profiles. Default 0.
Link attribute to Device Profiles. Default 0.
200
{
"success": "True",
"code": "200",
"message": "Tag is successfully created",
"model": {
"id": "60011986",
"project_id": "PROJECT_ID",
"title": "first_purchase",
"name": "first purchase",
"attribute_client": "0",
"attribute_profile": "1",
"type": "0"
}
}400
{
"success": "False",
"code": "400",
"message": "Tag is not created",
"errors": {
"title": [
"The combination \"2780\"-\"Test Attribute 1\" of Project and Tag has already been taken."
]
}
}