Policies

Export Policy By Id

GET
/policies/{policy_id}/export

Export a single policy as JSON.

Returns the policy in a format suitable for import.

Docs: Guide | API Reference

Raises: ResourceNotFoundError: If the policy does not exist.

Path Parameters

policy_id*Policy Id

Response Body

application/json

application/json

curl -X GET "https://example.com/policies/string/export"
{  "name": "string",  "description": "string",  "categories": {    "property1": "string",    "property2": "string"  },  "rule_modes": {    "property1": "block",    "property2": "block"  },  "mode": "content_moderation",  "pre_violation_threshold": 0.5,  "pre_jb_threshold": 0.3,  "post_violation_threshold": 0.5,  "post_violation_jb_threshold": 0.3,  "scanners_config": {},  "export_version": "1.0"}