Delete a policy version PDF
DELETE
/v1/policies/{id}/pdf
const url = 'https://api.varman.io/v1/policies/pol_abc123def456/pdf';const options = {method: 'DELETE', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.varman.io/v1/policies/pol_abc123def456/pdf \ --header 'X-API-Key: <X-API-Key>'Deletes the PDF from a specific policy version. If no versionId is provided, deletes from the latest draft version. Cannot delete PDFs from published or pending-approval versions.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Example
pol_abc123def456Policy ID
Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Organization ID (required for session auth, optional for API key auth)
Query Parameters
Section titled “Query Parameters”versionId
string
Target version ID. If omitted, targets the latest draft version.