Mutation
mutation CreateInspectionTemplate($name: String!) {
createInspectionTemplate(name: $name) {
archivedAt
id
name
organizationId
template
}
}Variables
{
"name": "string"
}Response
{
"data": {
"createInspectionTemplate": {
"archivedAt": "value",
"id": "string",
"name": "string",
"organizationId": "string",
"template": "value"
}
}
}Mutations
createInspectionTemplate
Creates an empty inspection template with the given name and returns it.
MUTATION
createInspectionTemplate(name: String!): InspectionTemplate!Arguments
name
String!
required
Name of the new template.
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 CreateInspectionTemplate($name: String!) {
createInspectionTemplate(name: $name) {
archivedAt
id
name
organizationId
template
}
}Variables
{
"name": "string"
}Response
{
"data": {
"createInspectionTemplate": {
"archivedAt": "value",
"id": "string",
"name": "string",
"organizationId": "string",
"template": "value"
}
}
}