Magidoc

reorderStackProjects
Mutation

Reorders the Projects within a Stack. ids is the desired full ordering of the Stack's Project ids; each listed Project is given its position from the list, and ids that do not belong to the Stack are silently ignored. The optional projectId first moves that Project into the Stack (it must be in the same Workspace and the caller must have the permissions documented by moveStackProject) before positions are applied atomically; a denied move changes no positions — this supports drag-and-drop of an outside Project into the Stack. The calling user must be an admin of the Stack's Workspace or a Stack admin. Returns the Stack.

Arguments

#

ids

[Int !]

Project ids in the desired order within the Stack.

projectId

Optional Project to move into the Stack before ordering is applied.

stackId

Non-null

Response

#

Returns Stack .

Example

#