Mutation
mutation CloneInspectionTemplate($name: String!, $templateId: String!) {
cloneInspectionTemplate(name: $name, templateId: $templateId) {
archivedAt
id
name
organizationId
template
}
}Variables
{
"name": "string",
"templateId": "string"
}Response
{
"data": {
"cloneInspectionTemplate": {
"archivedAt": "value",
"id": "string",
"name": "string",
"organizationId": "string",
"template": "value"
}
}
}Mutations
cloneInspectionTemplate
Creates a copy of an inspection template under a new name and returns it.
MUTATION
cloneInspectionTemplate(name: String!, templateId: String!): InspectionTemplate!Arguments
name
String!
required
Name of the copy.
templateId
String!
required
Id of the inspection template to copy.
Returns
archivedAt
DateTime
When the template was archived.
id
String!
Id of the template.
name
String!
Name of the template.
organizationId
String!
Id of the organization that owns the template.
template
JSON!
The checklist itself: its title, displayType ('sequential' or 'grid'), singleLocation flag and prompts, each with its questions.
Mutation
mutation CloneInspectionTemplate($name: String!, $templateId: String!) {
cloneInspectionTemplate(name: $name, templateId: $templateId) {
archivedAt
id
name
organizationId
template
}
}Variables
{
"name": "string",
"templateId": "string"
}Response
{
"data": {
"cloneInspectionTemplate": {
"archivedAt": "value",
"id": "string",
"name": "string",
"organizationId": "string",
"template": "value"
}
}
}