Set a document review schedule
PUT
/v1/document-templates/documents/{policyId}/schedule
const url = 'https://api.varman.io/v1/document-templates/documents/example/schedule';const options = { method: 'PUT', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"cadence":"monthly"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.varman.io/v1/document-templates/documents/example/schedule \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "cadence": "monthly" }'Sets a monthly, quarterly or yearly review cadence on a document. Keeps one recurring review task whose due date shows on the Security Calendar. Send null to stop scheduled reviews.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”policyId
required
string
Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
cadence
required
Review cadence for the document, or null to stop scheduled reviews and archive the open review task.
string
Example
quarterly