api reference
Intended Documentation
Policies API
Policy lifecycle endpoints for drafting, review, approval, deployment, and rollback.
Policies API#
Intended policy management is lifecycle-based. You work with drafts, run review/approval, deploy versions, and roll back when required.
Read Endpoints#
GET /policy/packs?tenantId=<tenant>GET /policy/packs/:pack/versions?tenantId=<tenant>GET /policy/drafts?tenantId=<tenant>GET /policy/drafts/:id?tenantId=<tenant>GET /policy/drafts/:id/impact-summary?tenantId=<tenant>
Create Draft#
Update Draft#
PUT /policy/drafts/:id
Submit Review#
POST /policy/drafts/:id/review- body:
{ tenantId, submittedBy, comments?, simulationRunId? }
- body:
Approve or Reject#
POST /policy/drafts/:id/approve- body:
{ tenantId, reviewerId, comments? }
- body:
POST /policy/drafts/:id/reject- body:
{ tenantId, reviewerId, comments? }
- body:
Deploy Draft#
POST /policy/deploy/:draftId- body:
{ tenantId, deployedBy, comments? }
- body:
Roll Back Deployed Version#
POST /policy/rollback/:versionId- body:
{ tenantId, rolledBackBy, comments? }
- body:
Warning
Policy APIs are fail-closed and tenant-scoped. Always send authenticated tenant context (x-tenant-id) that matches request body tenantId.