Mutation
mutation ArchiveInspectionTemplate($archived: Boolean!, $templateId: String!) {
archiveInspectionTemplate(archived: $archived, templateId: $templateId) {
archivedAt
id
name
organizationId
template
}
}Variables
{
"archived": true,
"templateId": "string"
}Response
{
"data": {
"archiveInspectionTemplate": {
"archivedAt": "value",
"id": "string",
"name": "string",
"organizationId": "string",
"template": "value"
}
}
}Mutations
archiveInspectionTemplate
Archives or restores an inspection template and returns it.
MUTATION
archiveInspectionTemplate(archived: Boolean!, templateId: String!): InspectionTemplate!Arguments
archived
Boolean!
required
True to archive the template, false to restore it.
templateId
String!
required
Id of the inspection template to archive or restore.
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 ArchiveInspectionTemplate($archived: Boolean!, $templateId: String!) {
archiveInspectionTemplate(archived: $archived, templateId: $templateId) {
archivedAt
id
name
organizationId
template
}
}Variables
{
"archived": true,
"templateId": "string"
}Response
{
"data": {
"archiveInspectionTemplate": {
"archivedAt": "value",
"id": "string",
"name": "string",
"organizationId": "string",
"template": "value"
}
}
}