Policies
Attach a policy
Attach a policy to a document.
post/v1beta/documents/{document_id}/policies
Path parameters
document_idstring required
Document ID. Pattern: doc_[0-9a-hjkmnp-tv-z]{26}
Example:doc_01h2xcejqtf2nbrexx3vqjhp41
Document ID. Pattern: doc_[0-9a-hjkmnp-tv-z]{26}
Request body
Example request
{
"policy_id": "pol_01h2xcejqtf2nbrexx3vqjhp41"
}Response
Success
Example response
{
"document_id": "doc_01h2xcejqtf2nbrexx3vqjhp41",
"policy": {
"id": "pol_01h2xcejqtf2nbrexx3vqjhp41",
"name": "GDPR Compliance Policy"
}
}