Skip to content

Sorting

The order or direction to sort results by.

Value Description
asc Ascending order (e.g., low to high or A to Z)
desc Descending order (e.g., high to low or Z to A)

A JSON example of this model.

"asc"
VersionChangesSchema
0.1.0
  • Added SortOrder enum
SortOrder.yaml

Query parameters for sorting. These parameters should be used on GET routes that support sorting.

Parameter Type Description
sortBy unknown The field to sort by, should be an enum for individual routes
customSortBy string An implementation-defined sort key
sortOrder SortOrder The order to sort by

A JSON example of this model.

{
"sortBy": "lastModifiedAt",
"customSortBy": "customField",
"sortOrder": "asc"
}
VersionChangesSchema
0.1.0
  • Added SortQueryParams model
SortQueryParams.yaml

Body parameters for sorting. These parameters should be used on POST and PUT routes that support sorting.

Parameter Type Description
sortBy unknown The field to sort by, should be an enum for individual routes
customSortBy string An implementation-defined sort key
sortOrder SortOrder The order to sort by

A JSON example of this model.

{
"sortBy": "lastModifiedAt",
"customSortBy": "customField",
"sortOrder": "asc"
}
VersionChangesSchema
0.1.0
  • Added SortBodyParams model
SortBodyParams.yaml

Information about the sort order of the items returned. This model should be included in responses that support sorting.

Parameter Type Description
sortBy string The field to sort by
customSortBy string An implementation-defined sort key
sortOrder SortOrder The order to sort by
errors Array<string> The errors that occurred during sorting

A JSON example of this model.

{
"sortBy": "lastModifiedAt",
"customSortBy": "customField",
"sortOrder": "asc",
"errors": [
"string"
]
}
VersionChangesSchema
0.1.0
  • Added SortedResultsInfo model
SortedResultsInfo.yaml