curl --request DELETE \
--url http://localhost:3333/v1/policies/{id}/versions/{versionId} \
--header 'X-API-Key: <api-key>'{
"deletedVersion": 123
}Deletes a non-published, non-pending version. Published and pending versions cannot be deleted.
curl --request DELETE \
--url http://localhost:3333/v1/policies/{id}/versions/{versionId} \
--header 'X-API-Key: <api-key>'{
"deletedVersion": 123
}API key for authentication
Organization ID (required for session auth, optional for API key auth)
Policy ID
"pol_abc123def456"
Policy version ID
"pv_abc123def456"
Version deleted
Was this page helpful?