A helper-interface:
Interface TreeIdNode {
id: Id;
children?: TreeIdNode[];
}
Payload:
{
meeting_id: Id;
tree: TreeIdNode[]; // recursive tree of ids.
}
Sorts all motions of the meeting in a tree by motion/sort_parent_id
and motion/sort_weight
. All motion ids of the meeting must be given.
The request user needs motion.can_manage
.