This resource returns a list of available attribute categories.

get

/content/management/api/v1.1/personalization/categories

This resource returns a list of available attribute categories that can be filtered by the category's name and type. You can control the number of items to be fetched, paginated and sorted. Refer to the query syntax description to see the limitations.

Request

Query Parameters
  • Default search query expression.
  • This parameter is used to control the returned fields for a attribute category. This parameter accepts a comma-separated list of field names or all. These fields will be returned for each category in the list. As all the field names are case-sensitive, users must provide the correct field names in the query. Each recommendation has both standard fields (id, name, description and type. When fields is specified as all (case-insensitive), all the standard and additional fields are returned. The standard fields are always returned in the response and cannot be filtered out. Users can only filter out the additional fields. This parameter is optional in the query and by default result shows only standard fields in the response. Any incorrect or invalid field name given in the query will result in an error.

    Example: ?fields=all
    This will return all standard fields and all additional fields for each category.
  • This parameter accepts a non negative integer and is used to control the size of the result.
    Default Value: 100
  • This parameter accepts a non negative integer and is used to control the start index of the result.
    Default Value: 0
  • Order by results.
    Default Value: name:asc
  • This parameter accepts a query expression condition that matches the field values. Query conditions can be joined using AND operators and grouped with parentheses. The value of a query condition follows the format of {fieldName} {operator} "{fieldValue}". The only field names allowed are name and typeWhen listing categories, type can be equal to "standard", "custom" or "all". If type is equals to "all", all categories will be retrieved. The only value allowed in the operator is eq (Equals).
    Example:
    https://{cecsdomain}/content/management/api/v1.1/personalization/categories?q=(type eq "custom")
    Example:
    https://{cecsdomain}/content/management/api/v1.1/personalization/categories?q=(name eq "Some space")
  • This parameter accepts a boolean flag. If specified as true, then the returned result must include the total result count.
    Default Value: false
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : AttributeCategories
Type: object
AttributeCategories
Show Source
Nested Schema : aggregationResults
Type: array
Aggregation results.
Show Source
Nested Schema : items
Type: array
Singular resources contained in the collection.
Show Source
Nested Schema : pinned
Type: array
Pinned items. Shows items pinned at the top of search list
Show Source
Nested Schema : AggregationResult
Type: object
Show Source
Nested Schema : AttributeCategory
Type: object
AttributeCatgegory
Show Source

400 Response

Bad request.

403 Response

Forbidden.

500 Response

Internal server error.
Back to Top