For endpoints with List
requests, the API supports sorting the response based on predefined system fieldsSorting is added as a parameter sort=field_name
in the requestThe default sorting when using sortable field is from smaller to larger or older to newer. Sorting can be reversed by putting a minus -
sign before sortable field like sort=-field_name
Example :#
if you sorted by sort=created_at
, API will return oldest created to newest created.
if you sorted by sort=-created_at
, API will return newest created to oldest created.
Modified at 2023-10-29 22:04:15