Create a document from a template
POST
/v1/document-templates/{templateId}/documents
const url = 'https://api.varman.io/v1/document-templates/example/documents';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"reviewCadence":"monthly"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/document-templates/example/documents \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "reviewCadence": "monthly" }'Creates a draft document from a template, filling sections from live org data (risks, vendors, assets, people and more) and marking what is left to complete. Opens in the policy editor; no employee sign off.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”templateId
required
string
Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
reviewCadence
Optional review cadence. When set, a recurring review task is created with the first due date one cadence from today and shown on the Security Calendar.
string
Example
yearly