Skip to main content
DELETE
/
v1
/
policies
/
{id}
/
pdf
Delete a policy version PDF
curl --request DELETE \
  --url https://api.trycomp.ai/v1/policies/{id}/pdf \
  --header 'X-API-Key: <api-key>'
const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};

fetch('https://api.trycomp.ai/v1/policies/{id}/pdf', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://api.trycomp.ai/v1/policies/{id}/pdf"

headers = {"X-API-Key": "<api-key>"}

response = requests.delete(url, headers=headers)

print(response.text)

Authorizations

X-API-Key
string
header
required

API key for authentication

Headers

X-Organization-Id
string

Organization ID (required for session auth, optional for API key auth)

Path Parameters

id
string
required

Policy ID

Example:

"pol_abc123def456"

Query Parameters

versionId
string

Target version ID. If omitted, targets the latest draft version.

Response

200 - undefined