Create custom attribute

POST {{baseUrl}}/v1/attributes

Create a custom attribute in this account. Custom attributes allow you to add data to Talon.One domain entities like campaigns, coupons, customers and so on.

These attributes can then be given values when creating/updating these entities, and these values can be used in your campaign rules.

For example, you could define a zipCode field for customer sessions, and add a rule to your campaign that only allows certain ZIP codes.

These attributes are shared across all Applications in your account and are never required.

Request Body

{"entity"=>"Event", "eventType"=>"pageViewed", "name"=>"pageViewed", "title"=>"Page view event", "type"=>"string", "description"=>"Event triggered when a customer displays a page.", "suggestions"=>["string"], "hasAllowedList"=>false, "restrictedBySuggestions"=>false, "editable"=>true, "subscribedApplicationsIds"=>[1, 4, 9], "subscribedCatalogsIds"=>[2, 5], "allowedSubscriptions"=>["application", "catalog"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring