Query
query InspectionTemplate($id: String!) {
inspectionTemplate(id: $id) {
archivedAt
id
name
organizationId
template
}
}Variables
{
"id": "string"
}Response
{
"data": {
"inspectionTemplate": {
"archivedAt": "value",
"id": "string",
"name": "string",
"organizationId": "string",
"template": "value"
}
}
}Queries
inspectionTemplate
The inspection template with the given id.
QUERY
inspectionTemplate(id: String!): InspectionTemplateArguments
id
String!
required
Id of the inspection template to return.
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.
Query
query InspectionTemplate($id: String!) {
inspectionTemplate(id: $id) {
archivedAt
id
name
organizationId
template
}
}Variables
{
"id": "string"
}Response
{
"data": {
"inspectionTemplate": {
"archivedAt": "value",
"id": "string",
"name": "string",
"organizationId": "string",
"template": "value"
}
}
}