Attributes
Attributes are the individual data points or characteristics about a user that can be used to personalize content, recommendations, and experiences for that user. For example age, location, browsing history, purchases, campaign sources, and so on.
Create an Attribute
https://personalize-api.contentstack.com/attributesThe Create an Attribute request lets you create a new attribute in a project.
To configure the permissions for your application via OAuth, include the personalize:manage scope.
{
"name": "Age",
"key": "age",
"description": "Age of the visitor"
}{
"name": "Age",
"key": "age",
"description": "Age of the visitor",
"project": "64c7787b333555469a861224",
"createdBy": "bxxxxxxxxxxxx3",
"updatedBy": "bxxxxxxxxxxxx6",
"createdAt": "2024-03-13T15:39:51.645Z",
"updatedAt": "2024-03-13T15:39:51.645Z",
"uid": "6xxxxxxxxxx2",
"createdByUserName": "Jane Doe",
"updatedByUserName": "Jane Doe",
"__type": "CUSTOM"
}Get all Attributes
https://personalize-api.contentstack.com/attributesThe Get all Attributes request fetches the list of all the attributes in a project.
To configure the permissions for your application via OAuth, include the personalize:read or personalize:manage scope.
[
{
"name": "Age",
"key": "age",
"description": "Age of the visitor",
"project": "64c7787b333555469a861224",
"createdBy": "bxxxxxxxxxxxx3",
"updatedBy": "bxxxxxxxxxxxx6",
"createdAt": "2024-03-13T15:39:51.645Z",
"updatedAt": "2024-03-13T15:39:51.645Z",
"uid": "6xxxxxxxxxx2",
"createdByUserName": "Jane Doe",
"updatedByUserName": "Jane Doe",
"__type": "CUSTOM"
}
]Update an Attribute
https://personalize-api.contentstack.com/attributes/{uid}The Update an Attribute request lets you update an existing attribute in a project.
To configure the permissions for your application via OAuth, include the personalize:manage scope.
{
"name": "Visitor Age",
"key": "age",
"description": "Age of the visitor from profile"
}{
"name": "Visitor Age",
"key": "age",
"description": "Age of the visitor from profile",
"project": "64c7787b333555469a861224",
"createdBy": "bxxxxxxxxxxxx3",
"updatedBy": "bxxxxxxxxxxxx6",
"createdAt": "2024-03-13T15:39:51.645Z",
"updatedAt": "2024-03-13T15:40:00.000Z",
"uid": "6xxxxxxxxxx2",
"createdByUserName": "Jane Doe",
"updatedByUserName": "Jane Doe",
"__type": "CUSTOM"
}Delete an Attribute
https://personalize-api.contentstack.com/attributes/{uid}The Delete an Attribute request lets you delete an existing attribute in a project.
To configure the permissions for your application via OAuth, include the personalize:manage scope.
The attributes were deleted successfully