To copy a project, you can use the following mutation:
mutation CopyProject {
copyProject(
input: {
companyId: "company-id"
projectId: "project-id"
name: "new project name"
options: {
assignees: true
automations: true
checklists: true
customFields: true
discussions: true
discussionComments: true
dueDates: true
files: true
forms: true
people: true
projectUserRoles: true
statusUpdates: true
statusUpdateComments: true
tags: true
todoActions: true
todoComments: true
todoLists: true
todos: true
}
}
)
}
With the options object, you can specify which parts of the project to copy. Ensure that this is logical, for intsance you cannot set assignees to be true if the people option is not true as well, this will results in an error.