---
title: "Update execution policy"
method: PATCH
path: "/v1/execution/policy"
tags: ["Execution Policy"]
---

# Update execution policy

`PATCH /v1/execution/policy`

## Request

- Base URL: `https://api.algenta.ai`
- URL: `https://api.algenta.ai/v1/execution/policy`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Partial update — only supplied fields are changed. Changes take effect immediately for all subsequent executions. Audit logs record every update.

## Request body

- UpdatePolicyRequest: Partial update — only supplied fields are changed.
  - `min_confidence` number, nullable: Minimum confidence to allow execution (0–1). Default: 0.5.
  - `risk_floor` number, nullable: Maximum tolerable downside loss (absolute). If p5 < -risk_floor the execution is blocked. Set to null to disable the check.
  - `require_calibration` boolean, nullable: When true, trigger auto_execute is disabled until the org has ≥5 recorded outcomes. Manual execution is always allowed.
  - `allow_reexecution` boolean, nullable: When true, already-executed decisions can fire again without force=true.

## Response `200`

Successful Response

- ExecutionPolicyResponse: Current execution policy for the calling org.
  - `org_id` string, required
  - `min_confidence` number, required
  - `risk_floor` number, nullable, required
  - `require_calibration` boolean, required
  - `allow_reexecution` boolean, required
  - `snapshot_id` string, required
  - `content_hash` string, required
  - `schema_revision` string, required
  - `revision` integer, required
  - `previous_snapshot_id` string, nullable
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/codna/apis/algenta-api.md) · [All operations](https://skmtc.dev/codna/apis/algenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codna/apis/algenta-api/revisions/35d30f84a5df?raw)
