Trait Type Methods trait-type-methods

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.

NOTE
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.

Create a New Trait Type create-trait-type

A POST method that lets you create a new trait type.

Request

POST https://api.demdex.com/v1/customer-trait-types

Sample Request

{
"name":"Custom trait type"
}

Response

{
    "pixelType": 34,
    "pid": 1099,
    "name": "Custom type",
    "description": null,
    "crUID": 694,
    "upUID": 694,
    "createTime": 1358297352000,
    "updateTime": 1358297352000
}

Return Properties for a Trait Type return-props

A GET method that returns details about the specified trait type.

Request

GET https://api.demdex.com/v1/customer-trait-types/<customerTraitTypeId>

Response

{
    "pixelType": 4,
    "pid": 0,
    "name": "Delivery Event",
    "description": "Delivery Event",
    "crUID": 158,
    "upUID": 158,
    "createTime": 1299115496000,
    "updateTime": 1299115496000
}

Return Properties for all Trait Types return-props-all

A GET method that returns details about all your trait types in an array.

Request

GET https://api.demdex.com/v1/customer-trait-types/

Response

[
    {
        "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
    }
]
recommendation-more-help
de293fbf-b489-49b0-8daa-51ed303af695