Mutation
mutation EditInspectionTemplate($input: EditInspectionTemplateInput!) {
editInspectionTemplate(input: $input) {
archivedAt
id
name
organizationId
template
}
}Variables
{
"input": {
"template": "value",
"templateId": "string"
}
}Response
{
"data": {
"editInspectionTemplate": {
"archivedAt": "value",
"id": "string",
"name": "string",
"organizationId": "string",
"template": "value"
}
}
}Mutations
editInspectionTemplate
Replaces the checklist of an inspection template and returns the template.
MUTATION
editInspectionTemplate(input: EditInspectionTemplateInput!): InspectionTemplate!Arguments
input
required
The template and its new checklist.
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 EditInspectionTemplate($input: EditInspectionTemplateInput!) {
editInspectionTemplate(input: $input) {
archivedAt
id
name
organizationId
template
}
}Variables
{
"input": {
"template": "value",
"templateId": "string"
}
}Response
{
"data": {
"editInspectionTemplate": {
"archivedAt": "value",
"id": "string",
"name": "string",
"organizationId": "string",
"template": "value"
}
}
}