Skip to main content

How to Create a Project

To create a Project, you must use a createProject mutation. As a bare minimum, you have to provide accountId in which you are creating your Project, a name of your Project and primaryDomain.

mutation CreateProject($input: CreateProjectInput!) {
createProject(input: $input) {
project {
...ProjectDetails
}
}
}

fragment ProjectDetails on Project {
id
name
primaryDomain
# ...other fields you want to retrieve
}
Show example variables Show example response Show cURL example Try in explorer

Of course, you can pass any of the optional fields at the time of creation. Explore CreateProjectInput to see what fields are available.