Optional methods that let you to assign traits to a user-defined type or category, usually according to function or for your own internal reporting processes.
Trait type methods do not assign traits to categories used by the common taxonomy. Think of these as labels that are separate from the common taxonomy.
For visual reference, Trait Types is a dropdown control located in the UI under Traits > Create new trait > Basic Information.
A POST
method that lets you create a new trait type.
POST https://api.demdex.com/v1/customer-trait-types
{
"name":"Custom trait type"
}
{
"pixelType": 34,
"pid": 1099,
"name": "Custom type",
"description": null,
"crUID": 694,
"upUID": 694,
"createTime": 1358297352000,
"updateTime": 1358297352000
}
A GET
method that returns details about the specified trait type.
GET https://api.demdex.com/v1/customer-trait-types/
<customerTraitTypeId>
{
"pixelType": 4,
"pid": 0,
"name": "Delivery Event",
"description": "Delivery Event",
"crUID": 158,
"upUID": 158,
"createTime": 1299115496000,
"updateTime": 1299115496000
}
A GET
method that returns details about all your trait types in an array.
GET https://api.demdex.com/v1/customer-trait-types/
[
{
"pixelType": 200,
"pid": 1099,
"name": "Customer Specific Trait Type",
"description": "Test",
"crUID": 158,
"upUID": 158,
"createTime": 1349990458000,
"updateTime": 1349990458000
},
{
"pixelType": 1,
"pid": 0,
"name": "User Trait",
"description": "User Trait",
"crUID": 158,
"upUID": 158,
"createTime": 1299115492000,
"updateTime": 1299115492000
},
{
"pixelType": 2,
"pid": 0,
"name": "Site Visitor",
"description": "Site Visitor",
"crUID": 158,
"upUID": 158,
"createTime": 1299115493000,
"updateTime": 1299115493000
}
]