Pular para o conteúdo principal

Apply a new arrangement

POST 

/admin/menu/reorder

The WHOLE arrangement, not a delta, applied in one transaction — a partial reorder is a tree with two nodes claiming one position.

The response is the re-read tree rather than an echo of the request, so a client renders what was actually stored.

This path is declared before /admin/menu/{id} so the literal wins the match; a router preferring the parameter would route this into the update handler with id="reorder", producing a 404 that reads like a missing record rather than a routing bug.

Permission: menu.write

Request

Responses

The tree as stored