splitch

DocsAPIINVALID_SORT.md

INVALID_SORT

HTTP status
400
Details payload
{ field: string, allowedFields: string[] }

Cause

The requested sort field is not sortable on this collection.

Fix

Pick a field from details.allowedFields. The list is exact: sorting on an unlisted field is refused rather than silently ignored, which would return a differently ordered page than you asked for.

Related codes