Create account project

createAccountProject(input: CreateAccountProjectInput!): AccountProject!

Requires account.projects.create.

Arguments

ArgumentTypeRequired
inputCreateAccountProjectInput!Yes

Input fields

input

CreateAccountProjectInput

FieldTypeRequiredDescription
accountIdUUID!YesAccount to receive the new project. Project creation and account assignment are atomic. Requires account.projects.create. The caller remains the billing and seat owner. The caller project limit returns 402 when exhausted.
nameString!YesProject display name.
slugStringNoUnique project slug. Omit to generate a slug with a random suffix. An explicit duplicate slug returns 409; creation does not replay an existing project.
templateSlugStringNoOptional template slug. A template project UUID takes precedence. Null means omitted.
templateProjectIdUUIDNoOptional template project UUID. Overrides templateSlug. Null means omitted.

Response

Returns AccountProject!. Open the type for its fields and nested types.

FieldTypeDescription
idID!Project UUID.
slugString!Project slug.
nameString!Project display name.
accountIdUUID!Account UUID to which this project is assigned.
typeAccountProjectType!Project classification.
isTemplateBoolean!Whether the project is available as a template.
systemManagedBoolean!Whether the platform manages this project.
createdAtString!Project creation timestamp in ISO 8601 UTC.

All fields of AccountProject.

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

Example

graphql
mutation CreateAccountProject($input: CreateAccountProjectInput!) {
  createAccountProject(input: $input) {
    id
    name
    slug
    createdAt
    updatedAt
  }
}
json
{
  "input": {
    "accountId": "example",
    "name": "example"
  }
}