Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

List category nodes

Returns a paginated list of category nodes. Nodes of every level of the tree are returned together; there is no default ordering, so the paginator falls back to ordering by pk ascending.

Filter with id, uuid, name, or depth — all exact matches. ?depth=1 returns the tree roots. Order results with sort on pk, name, uuid, depth, path, or sort_option; an unrecognised sort value is silently ignored rather than rejected.

name and the merged attributes are rendered in the language selected for the request; see the IGNORE_ACCEPT_LANGUAGE_HEADER dynamic setting under Dynamic Settings & Environment Variables.

get
/category_node/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Query parameters
pageintegerOptional

The page number to return.

Default: 1
limitintegerOptional

The number of items to return per page.

Default: 10
sortstringOptional

Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (-) for descending order.

Example: -id
idintegerOptional

Filter by the node's identifier. Exact match.

Example: 42
uuidstring · uuidOptional

Filter by the node's client-supplied UUID. Exact match.

Example: 9f1c2e7a-4b8d-4f3a-9c11-2d6e8b7a0f45
namestringOptional

Filter by the node's stored name. Exact, case-sensitive match — there is no contains variant.

Example: Shoes
depthintegerOptional

Filter by the node's level in the tree. 1 selects the tree roots, 2 their direct children.

Example: 2
Responses
200

A page of category nodes.

application/json

A paginated list of category nodes.

countintegerOptional

Total number of category nodes matching the request.

nextstring · nullableOptional

URL of the next page, or null if this is the last page.

previousstring · nullableOptional

URL of the previous page, or null if this is the first page.

get/category_node/
GET /api/v1/remote/1/category_node/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "pk": 42,
      "name": "Shoes",
      "menuitemmodel": "3f2a1c9e-8b7d-4a6f-9c0e-1d2b3a4c5e6f",
      "absolute_url": "/shoes/",
      "sort_option": 3,
      "uuid": "9f1c2e7a-4b8d-4f3a-9c11-2d6e8b7a0f45",
      "depth": 2,
      "path": "00010002",
      "attributes": {
        "size_chart": {
          "value": 12,
          "kwargs": {
            "label": "Women's Shoes"
          }
        }
      }
    }
  ]
}

Last updated

Was this helpful?