Datas
  • Forside
  • App-udvikling
  • Hosting
  • Support
  • Kontakt os
Kontakt mig
113 Fulton Street, Suite 721
New York, NY 10010
[email protected]
+88 (0) 101 0000 000
  • facebook
  • twitter
  • youtube
  • instagram

Purchase

General

6
  • user
  • Tags
  • Sorting
  • Roles API
  • Categories
  • Auth
View Categories
  • Home
  • Docs
  • General
  • Sorting

Sorting

< 1 min read

Sorting API #

Base path: /sorting


POST /sorting/change
Changes the position of a row within a table by updating its sorting order.


Description:
This endpoint moves a row to a new position based on another row’s position.
It automatically adjusts the sorting values of affected rows to maintain correct ordering.


Behavior:

  • Finds the current position of the item to move
  • Finds the target position
  • Shifts other rows up or down accordingly
  • Updates the moved row to its new position

Possible errors:

  • 404: Table does not exist
  • 404: Invalid ID (row not found)
  • 422: Validation error (missing or invalid IDs)

Notes:
The table must contain a sorting column.
Both IDs must exist in the same table.
The endpoint dynamically works with any table name provided.

Updated on March 29, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
TagsRoles API

Powered by BetterDocs

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Table of Contents
  • Sorting API

Copyrights 2019 Ninetheme

113 Fulton Street, Suite 721 New York, NY 10010
[email protected]
+88 (0) 101 0000 000
datas_logo_white_sm

Datas / Digitalis
Cvr. 35953787

Energivej 30
2750 Ballerup

Kontakt mig

  • [email protected]
  • +45 93307121

Links

  • Hosting kontrakt
  • Api dokumentation