---
title: "Patch Generation Settings"
method: PATCH
path: "/api/generations/{project_id}/settings"
tags: ["AI Builder"]
---

# Patch Generation Settings

`PATCH /api/generations/{project_id}/settings`

## Request

- Base URL: `https://api.agentstack.tech` (the document declares no server; this is the origin it was published from)
- URL: `https://api.agentstack.tech/api/generations/{project_id}/settings`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

## Path parameters

- `project_id` integer, required

## Headers

- `Idempotency-Key` string

## Request body

- GenerationSettingsPatch
  - `auto_generation_mode` boolean, nullable
  - `auto_checkpoint_before_promote` boolean, nullable
  - `require_gates_passed_on_promote` boolean, nullable
  - `auto_generation_categories` string[], nullable
  - `auto_generation_soak_minutes` integer, nullable
  - `auto_generation_require_approval` boolean, nullable
  - `auto_generation_approval_mode` string, nullable: off | at_least_one | min_count | min_percent | manual_only
  - `auto_generation_approval_min_count` integer, nullable
  - `auto_generation_approval_min_percent` integer, nullable
  - `direct_prod_roles` string[], nullable
  - `auto_promote_on_all_pass` boolean, nullable
  - `auto_promote_strategy` string, nullable: immediate | canary | blue_green
  - `canary_auto_route` boolean, nullable
  - `canary_error_rate_threshold` number, nullable
  - `canary_p99_latency_ms_threshold` number, nullable
  - `canary_watchdog_interval_seconds` integer, nullable

## Response `200`

Successful Response

- object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Validation Error
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/agentstack/apis/agentstack-core-api.md) · [All operations](https://skmtc.dev/agentstack/apis/agentstack-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentstack/apis/agentstack-core-api/revisions/79f4a4dd8813?raw)
