Magidoc

reorderBoxes
Mutation

Reorders the boxes of one slice. ids is the full desired order of box ids in sliceId; positions are assigned by list index, and ids that do not belong to the slice are ignored. The optional id identifies a box dragged in from another slice of the same project: it is first moved into sliceId (same logic as moveBox), then placed according to ids, or appended last when absent from ids. Requires permission to create todos in the slice's project; returns the reordered boxes, or not_allowed on missing permission.

Arguments

#

id

Optional id of a box dragged in from another slice of the same project; it is moved into the slice before the order is applied.

ids

[Int !]

Full desired box-id order for the slice.

sliceId

Non-null

Response

#

Returns [Box ].

Example

#