Attributes
Update 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.
Update an existing custom attribute. Once created, the only property of a custom attribute that can be changed is the description.
To change the type or name property of a custom attribute, create a new attribute and update any relevant integrations and rules to use the new attribute.
put/v1/attributes/{attributeId}
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.
Path parameters
attributeIdinteger required
The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in Account > Tools > Attributes.
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
OK
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.