Policies
Alle Operationen rund um Policies.
Datenmodell
Die Endpoints dieses Moduls arbeiten auf folgender Entität. Die Schema-Referenz listet jedes Feld mit Typ, Validierung und Beziehungen:
| Entität | Schema-ID | Felder | Sequenz | Permissions |
|---|---|---|---|---|
| Policy | policy |
28 | — | policy_* |
Endpoints
| Methode | Pfad | Operation | Beschreibung |
|---|---|---|---|
POST |
/v1/policies |
Create policie | Create a new policie in the active tenant. |
DELETE |
/v1/policies/{id} |
Delete policie | Soft delete entity. |
GET |
/v1/policies/{id} |
Get policie by id | Fetch a single policie. |
GET |
/v1/policies/{id}/linked |
Get linked entities | CodeMeta OS API endpoint. |
GET |
/v1/policies/templates |
GET /v1/policies/templates | Get all policy section templates grouped by policy type |
GET |
/v1/policies/templates/{policyType} |
GET /v1/policies/templates/{policyType} | Get section templates for a specific policy type |
GET |
/v1/policies/{id}/timeline |
Get timeline | CodeMeta OS API endpoint. |
GET |
/v1/policies/{id}/transitions |
List transitions | CodeMeta OS API endpoint. |
GET |
/v1/policies/types |
GET /v1/policies/types | Get all supported policy types with labels and categories |
GET |
/v1/policies |
List policies | List policies for the active tenant. |
PATCH |
/v1/policies/{id} |
Patch policie | JSON Merge Patch update. |
POST |
/v1/policies/{id}/ai-check |
POST /v1/policies/{id}/ai-check | Trigger an AI compliance check for a policy |
POST |
/v1/policies/{id}/approve |
POST /v1/policies/{id}/approve | Approve a policy under review |
POST |
/v1/policies/bulk |
Bulk operation | CodeMeta OS API endpoint. |
POST |
/v1/policies/{id}/publish-to-dms |
POST /v1/policies/{id}/publish-to-dms | Generate a PDF and store it as a DMS document |
POST |
/v1/policies/{id}/reject |
POST /v1/policies/{id}/reject | Reject a policy under review, returning it to draft |
POST |
/v1/policies/{id}/submit-for-review |
POST /v1/policies/{id}/submit-for-review | Submit a policy draft for review |
POST |
/v1/policies/{id}/supersede |
POST /v1/policies/{id}/supersede | Mark a policy as superseded by a newer version |
POST |
/v1/policies/{id}/transition |
POST /v1/policies/{id}/transition | CodeMeta OS API endpoint. |
POST |
/v1/policies/{id}/transitions/{transitionKey} |
Execute transition | CodeMeta OS API endpoint. |
PUT |
/v1/policies/{id} |
Replace policie | Full replace with optimistic locking. |