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.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The page number to return.
1The number of items to return per page.
10Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (-) for descending order.
-idFilter by the node's identifier. Exact match.
42Filter by the node's client-supplied UUID. Exact match.
9f1c2e7a-4b8d-4f3a-9c11-2d6e8b7a0f45Filter by the node's stored name. Exact, case-sensitive match — there is no contains variant.
ShoesFilter by the node's level in the tree. 1 selects the tree roots, 2 their direct children.
2A page of category nodes.
A paginated list of category nodes.
Total number of category nodes matching the request.
URL of the next page, or null if this is the last page.
URL of the previous page, or null if this is the first page.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested page of the category node list does not exist — the page number is beyond the last page or is not a number.
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?

