Policies
Update a policy
Changed onUpdates an existing policy. Only provided fields are updated. The last_updated_by and last_updated_at are set automatically from the JWT token. If assigned_reviewer_ids is provided, the reviewer list is fully replaced.
put/policies/{id}
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/policies/{id}
- AuthHTTP bearer
Path parameters
idinteger required
Example:42
Numeric ID of the policy
Request body
Response
Policy updated successfully
Example response
{
"message": "Accepted",
"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
updatePolicyremoved and replaced withPolicyController.updatePolicy
- info
- info
api operation id
PolicyController.updatePolicyremoved and replaced withupdatePolicy
- info