createProject Mutation
Create a new project in a workspace. Only title and workspaceId are
required; the caller must hold the "admin" or "project_creator" role in
that workspace. Personal workspaces never allow projects — attempting
one fails with "workspace_id not allowed - personal workspaces do not
allow projects. You can create todos directly at the workspace level
instead".
Two creation modes are useful to API callers: a plain call (no
recipeId) creates the project with a single unnamed slice so tasks
can be added right away, and recipeId instantiates the full structure
of a recipe template. The aiData and aiPromptData arguments are
reserved for Pie's in-app Create-from-AI flow and should not be
populated by external callers — an AI assistant that wants an AI-generated
project should design the structure itself and create it with
createProject and its slices list (or saveProjectSlices afterwards),
followed by createTodo. The caller is automatically assigned as project
admin unless assignments contains an explicit self-assignment with
another role; the API User of an organization access token is never
assigned. startDate
and endDate are stored exactly as given (they are never derived from
task dates), and title must not contain a URL.
Returns the created project. Validation failures return a list of
"field message" error strings. Rate limit: one user (or one
organization access token) can create at most 50 projects per 10
minutes. See also updateProject,
saveProjectSlices, createTodo, duplicateProject.
Arguments
#
aiData
Reserved for Pie's in-app Create-from-AI flow; external callers should not populate this.
aiPromptData
Reserved for Pie's in-app Create-from-AI flow; stored on the project but inert at creation.
assignments
Initial team assignments. Assigned users other than the caller receive a notification email. The caller defaults to the "admin" role unless explicitly listed with a different role. With an organization access token (Read + write) the list must name at least one person with the "admin" role, by userId or userEmail, who is an existing member of the token's organization (otherwise project_admin_required, or person_not_found); nobody is invited, and the API User is never put on the team. This also holds when creating from a recipe.
dataFieldAnswersChanges
Accepted but not applied during creation; set data field values with updateProjectDataFields after the project exists.
description
endDate
files
Ids of already-uploaded files (owned by the caller, not yet attached to a project) to attach to the new project.
folders
Ids of existing folders not yet attached to any project, to attach to the new project.
recipeId
Recipe (template) to instantiate. Copies the recipe's slices, boxes, tasks and subtasks, roles, data fields, files, folders, color tags, and task dependencies into the new project. The recipe must be visible to the caller.
slices
Titles of the slices to create the project with, in order. Without it the project gets one unnamed slice. Cannot be combined with recipeId, which brings the recipe's own slices.
stackId
Optional stack to place the project in. Must belong to the same workspace; the stack's assignees are automatically added as project admins.
startDate
Response
#
Returns Project .
Example
#
createPost
createStack
