orders array in the JSON request body. Each endpoint declares its own set of order keys — the available keys are listed on the endpoint’s API Reference page. Like every tipee API call, the examples below are POST requests with a JSON body (see First steps).
Basic syntax
Every order is an object with akey and a direction. Order keys follow the same <entity>.<field> naming convention as filters:
For example, on
/api/activity/projects.list:
Multiple orders
Orders are applied in the order of the array: the first entry is the primary sort, the second breaks ties, and so on.A few endpoints only accept a single order:
/api/activity/activities.list-details responds with 422 Multiple orders are not allowed. when several are sent. That restriction is enforced by the endpoint but not visible in its reference schema, which is why it is listed here.Orders with additional properties
Some order keys require extra properties. For example,resource.attribute on /api/directory/resources.list sorts by any attribute of the directory kind and requires an attribute property:
/api/directory/kinds.show, which also indicates whether each attribute can be ordered.
Default ordering
Whenorders is omitted, each endpoint applies its own default ordering. For example, /api/directory/resources.list falls back to the sorting attributes configured on the directory kind.
Common errors
The response body contains a message describing the problem — see Error Handling for the general error format.