Magidoc

createBox
Mutation

Creates a single box inside a project slice. A Box is a container for todos within a slice; when the slice's boardView flag is true, its boxes render as board columns. The new box is always created with done: false.

The caller must be allowed to create todos in the slice's project: a workspace admin, or a workspace member assigned to the project as admin, admin+autoassign, member, or member+invite (members with the "only_my_work" role cannot manage boxes).

Returns the created Box; fails with not_found when the slice does not exist and not_allowed when the caller lacks permission. The box, the moved todos, and the slice's boardView change are saved together: if one of them fails, none of them is saved. To create several board columns at once and turn the slice into a board, use createBoxes instead.

Arguments

#

boardView

Sets the parent slice's boardView flag: true turns the slice into a board, false makes it a plain list. Omit the argument to keep the slice's current setting.

moveTodos

When true, all loose todos sitting directly on the slice (todos with no boxId) are moved into the new box.

position

Non-null

Ordering position of the box within the slice (0-based).

sliceId

Non-null

Id of the project slice that will own the box.

title

Non-null

Box label.

Response

#

Returns Box .

Example

#