GET /api/categories

Description

Returns list of categories

Parameters

tree

Int. Optional. 0/1. If 1, returns categories as a tree structure. Otherwise, simply a flat array. Default 0.

view

String. Optional. "simple"/"full". Whether to get simple or full versions of the objects. Default "simple".

limit

Int. Optional. Default: 20. Maximum: 100. Limit the size of the result set.

offset

Int. Optional. Default: 0. Offset the result set, starting at this index. For batching/paging.

fields

String. Optional. See Field customization.

Return

Array of Category objects.

Security

Superuser, manager, person

GET /api/categories/[category_id]

Description

Returns single category

Parameters

view

String. Optional. "simple"/"full". Whether to get simple or full versions of the object. Default "full".

fields

String. Optional. See Field customization.

Return

Category object.

Security

Superuser, manager, person