Skip to main content

Create Custom Attribute

Log in to add to favourites

Page last updated 12 June 2026

This endpoint is for creating a new Custom Attribute for the specified project.
POSTapi/management/projects/{projectId}/personalization/attributes

Parameter

NameParameter typeTypeDescription
projectId(required)pathstringThe project identifier found in the project overview screen of the management console.

Responses

HTTP status codeReasonModel
401UnauthorizedError
404Project not foundError
422Validation error(s)Error
500Internal server errorError

Examples

Custom attribute of boolean value type
JSON
{
    "id": "custom.newAttribute",
    "name": "My Custom Attribute",
    "description": "Custom Attribute description limited to 140 characters",
    "type": "boolean"
}
Custom attribute of string value type
JSON
{
    "id": "custom.newAttribute",
    "name": "My Custom Attribute",
    "description": "Custom Attribute description limited to 140 characters",
    "type": "string"
}
Custom attribute of integer value type
JSON
{
    "id": "custom.newAttribute",
    "name": "My Custom Attribute",
    "description": "Custom Attribute description limited to 140 characters",
    "type": "integer"
}

Remarks

A custom attribute requires a name, id and type to be created.

The id must be prefixed with custom. to be valid.

The name and id must both be unique.

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request