To create a new project, you can use the following mutation:
mutation {
createProject(
input: {
name: "YOUR PROJECT NEW NAME"
companyId: "YOUR COMPANY ID OR SLUG"
}
) {
id
}
}
The CreateProjectInput
should include the following fields:
Upon success, the mutation will return the ID of the newly created project:
{
"data": {
"createProject": {
"id": "newly-created-project-id"
}
}
}
To create a project from an existing template, you can add an optional templateId
to the mutation.
mutation {
createProject(
input: {
templateId: "YOUR TEMPLATE ID OR SLUG"
name: "YOUR PROJECT NEW NAME"
companyId: "YOUR COMPANY ID OR SLUG"
}
) {
id
}
}
To check the status of your project creation in the queue, you can use the following query:
query {
copyProjectStatus {
newProjectName
isTemplate
isActive
queuePosition
totalQueues
}
}
This query will return the status of your project creation in the queue.