---
title: "Update Safety Gate"
method: PATCH
path: "/api/ai-agents/{agent_id}/safety-gates/{gate_id}"
tags: ["ai-agents", "ai-agents"]
---

# Update Safety Gate

`PATCH /api/ai-agents/{agent_id}/safety-gates/{gate_id}`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/ai-agents/{agent_id}/safety-gates/{gate_id}`
- Auth: none declared

Update a safety gate.

## Path parameters

- `agent_id` integer, required
- `gate_id` integer, required

## Request body

- SafetyGateUpdate
  - `gate_type` string, nullable
  - `config` object, nullable
  - `enabled` boolean, nullable
  - `priority` integer, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
