POST
Create an audit from a 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

Body

application/json
name
string

Title of the new audit. Without one the audit has an empty name.

Maximum string length: 500
responsible
string<email>

E-mail address of the responsible user.

tags
string[]
dueDate
string<date-time>

Must lie in the future.

auditType
string

The audit type. Defaults to area.

Response

Audit created. The answer is the write acknowledgement: id is the new audit's id, rev its current _rev.

The database's acknowledgement of a write. rev is the document's new _rev.

ok
boolean
Example:

true

id
string
rev
string
Example:

"2-9a1c…"