Magidoc

createStack
Mutation

Creates a Stack — the portfolio-level grouping of Projects within a Workspace (Stacks apply to Projects only, not Recipes). title and workspaceId are required; description is an optional free-text note.

The optional assignments list attaches additional users to the Stack at creation time; the only meaningful role value is "stack_admin". A Stack Admin can view and update the Stack (and view its Projects) even without being a Workspace admin. The Stack Admin list cannot be edited through updateStack afterward.

The calling user must be a Workspace admin or have the project-creator permission in the target Workspace; otherwise the mutation fails with a "not_allowed" error. Returns the created Stack (initially empty). Add Projects to it afterward with moveStackProject.

Arguments

#

assignments

Users to attach as Stack admins; use role "stack_admin".

description

title

Non-null

workspaceId

Non-null

Response

#

Returns Stack .

Example

#