Create custom attribute
[!note] Management API endpoints are not meant to be used in real-time integrations that directly serve your end users. Rate limit: 3 requests per second.
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
- Base URLhttps://yourbaseurl.talon.one
- Auth
- API key in header Authorization
- or API key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"entity": "Event",
"eventType": "pageViewed",
"name": "pageViewed",
"title": "Page view event",
"type": "string",
"description": "Event triggered when a customer displays a page.",
"editable": true,
"subscribedApplicationsIds": [
1,
4,
9
],
"subscribedCatalogsIds": [
2,
5
],
"allowedSubscriptions": [
"application",
"catalog"
]
}Response
Created
Example response
{
"id": 6,
"created": "2020-06-10T09:05:27.993483Z",
"accountId": 3886,
"entity": "Event",
"eventType": "pageViewed",
"name": "pageViewed",
"title": "Page view event",
"type": "string",
"description": "Event triggered when a customer displays a page.",
"editable": true,
"subscribedApplicationsIds": [
1,
4,
9
],
"subscribedCatalogsIds": [
2,
5
],
"allowedSubscriptions": [
"application",
"catalog"
],
"eventTypeId": 22
}Changes
No recorded changes to this operation across all 2 revisions of this API.