Policies
Create a new policy
Changed onCreates a new policy. The author_id and last_updated_by are set from the JWT token automatically.
post/policies
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/policies
- AuthHTTP bearer
Request body
Example request
{
"title": "Data Governance Policy",
"content_html": "<h1>Data Governance</h1><p>This policy outlines...</p>",
"status": "draft",
"tags": [
"Data governance",
"Privacy"
],
"next_review_date": "2026-07-01T00:00:00.000Z",
"assigned_reviewer_ids": [
2,
5
]
}Response
Policy created successfully
Example response
{
"message": "Created",
"data": {
"id": 42,
"organization_id": 1,
"title": "AI Ethics Policy",
"content_html": "<h1>AI Ethics Policy</h1><p>...</p>",
"status": "draft",
"author_id": 1,
"last_updated_by": 1,
"assigned_reviewer_ids": [
2,
5
]
}
}Changes
- info
api operation id
createPolicyremoved and replaced withPolicyController.createPolicy
- info
- info
api operation id
PolicyController.createPolicyremoved and replaced withcreatePolicy
- info