Update a Policy
Updates one or more fields on an existing policy. Only include the fields you want to change.Path Parameters
| Parameter | Type | Description |
|---|---|---|
dockId | string | The dock ID |
policyId | string | The policy ID |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Optional | Updated display name |
recipe | string/JSON | Optional | Updated policy recipe definition |
Example Request
Response
Returns the full updated policy object.Error Handling
| Status | Condition |
|---|---|
400 | recipe is not a valid policy definition |
401 | Missing or invalid API key |
404 | Policy or dock not found |
Updating a policy’s recipe does not automatically create a new version. Use Create Version to snapshot the current state before making changes.