GET
Get an audit template

Authorizations

Authorization
string
header
required

Obtain a token via POST /api/v1/oauth/token (password grant) and send it as Authorization: Bearer <token>.

Path Parameters

database
string
required

Project identifier (each project has its own database). Obtain it from GET /api/v2/data/projects.

auditTemplateId
string
required

Response

The template document.

_id
string
_rev
string
name
string
groupId
string

The template group, as the group document's bare CouchDB id. Mandatory on create, and a template can never be left ungrouped.

group
string

The group's display name. Derived from groupId and ignored if you send it, so the two cannot disagree — the app reads this field rather than looking the group up.

project
string

The project database.

isPublished
boolean

Whether the template is released for use. Unpublished templates can still be used to create audits; only archived or deleted ones are refused.

archived
string

Set when the template is archived. Absent means active.

auditType
string
answeredStatusEnabled
boolean
tags
string[]
dates
object
author
object
lastmodifier
object
versionInfo
object

The app's version history for this template.

_attachments
object

CouchDB inline attachments, keyed by file name — where images used by questions live. Always present, even when empty.

questions
object[]

The question tree, exactly two levels deep: categories, each holding questions.