Create a Policy Version
Creates a new version of the policy by snapshotting its current recipe. This is useful for tracking changes over time and enabling rollback.Path Parameters
| Parameter | Type | Description |
|---|---|---|
dockId | string | The dock ID |
policyId | string | The policy ID |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
changelog | string | Optional | A description of what changed in this version |
Example Request
Response
Error Handling
| Status | Condition |
|---|---|
401 | Missing or invalid API key |
404 | Policy or dock not found |
Versions are immutable once created. The version number auto-increments. To revert to a previous recipe, use the Rollback endpoint.