Create project

createProject(input: CreateProjectInput!): CreateProjectPayload

Arguments

ArgumentTypeRequired
inputCreateProjectInput!Yes

Input fields

input

CreateProjectInput

FieldTypeRequiredDescription
slugStringNoLowercase project identifier. Starts with a letter; words may be separated by single hyphens.
nameString!YesProject display name. Must not be empty.
descriptionStringNoProject description.
templateSlugStringNoStarter or accessible template project slug. Omit for an empty project.
templateProjectIdIDNoAccessible template project UUID to copy. Overrides templateSlug.

Response

Returns CreateProjectPayload. Open the type for its fields and nested types.

FieldType
projectProject

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation CreateProject($input: CreateProjectInput!) {
  createProject(input: $input) {
    project {
      id
      name
      slug
      createdAt
      updatedAt
    }
  }
}
json
{
  "input": {
    "name": "example"
  }
}