The following table shows field support for filters and sorting for the Category object:
Field | Supported Filters | Sortable |
---|---|---|
id | $eq , $ne , $hasSome | |
title | $eq , $ne , $contains , $startsWith , $endsWith , $hasSome ,$lt , $lte , $gt , $gte , $exists , $in | Sortable |
label | $eq , $ne , $contains , $startsWith , $endsWith , $hasSome ,$lt , $lte , $gt , $gte , $exists , $in | Sortable |
postCount | $eq , $ne , $lt , $lte , $gt , $gte , $in | Sortable |
displayPosition | $eq , $ne , $lt , $lte , $gt , $gte , $in | Sortable |
translationId | $eq , $ne , $exists , $in | |
language | $eq , $ne , $exists , $in | Sortable |
slug | $hasSome , $hasAll | Sortable |
Related content: API Query Language, Query endpoint 1
Retrieves a list of up to 100 categories per request.
List Categories runs with these defaults, which you can override:
paging.limit
is50
.paging.offset
is0
.
List Categories is sorted by displayPosition
in descending order. This cannot be overridden.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Creates a category.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Updates a category.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Gets a category with the provided ID.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Deletes a category.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Gets a category with the provided slug.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Retrieves a list of up to 100 categories, given the provided paging, filtering, and sorting. Query Categories runs with these defaults, which you can override.
displayPosition
is sorted inDESC
order.paging.limit
is50
.paging.offset
is0
.
For field support for filters and sorting, see Field Support for Filtering and Sorting.
To learn about working with Query endpoints, see API Query Language, Sorting and Paging, and Field Projection.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Triggered when a category is created.
Event Body
Triggered when a category is updated.
Event Body
Triggered when a category is deleted.