post https://api.eu.xtremepush.com/api/external/create/tag
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 |
Example
Create a new custom string-type User Profile attribute
curl --request POST \
--url https://api.eu.xtremepush.com/api/external/create/tag \
--header 'content-type: application/json' \
--data '{
"apptoken": "YOUR_APPTOKEN",
"title": "Test Attribute 1",
"attribute_profile": 1,
"type": 0
}'