Skip to content

Switch a policy between editor and PDF view

PATCH
/v1/policies/{id}/display-format
curl --request PATCH \
--url https://api.varman.io/v1/policies/pol_abc123/display-format \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "displayFormat": "EDITOR" }'

Sets whether the policy is shown as rich text (EDITOR) or as its uploaded PDF (PDF). Allowed for policy editors and anyone with policy update permission.

id
required
string

Example

pol_abc123

Policy ID

X-Organization-Id
string

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

Media typeapplication/json
object
displayFormat
required

How the policy is shown

string
Allowed values: EDITOR PDF

Example

PDF