---
title: "Set Kill Switch"
method: PATCH
path: "/infra/kill-switches/{name}"
tags: ["infrastructure"]
---

# Set Kill Switch

`PATCH /infra/kill-switches/{name}`

## Request

- Base URL: `https://api.4chems.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.4chems.com/infra/kill-switches/{name}`
- Auth: HTTP bearer

Set or clear *name*'s override and return the switch's new effective state.
Call this to flip a glass-break kill switch during an incident, or to clear an
override once resolved; audited before commit, 404 on unknown name.

## Path parameters

- `name` string, required

## Request body

- KillSwitchPatchIn
  - `enabled` boolean, nullable, required

## Response `200`

Successful Response

- KillSwitchOut
  - `name` string, required
  - `env_default` boolean, required
  - `override` boolean, nullable, required
  - `effective` boolean, required
  - `updated_by` string, nullable, required
  - `updated_at` string, date-time, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/4chems/apis/platform-api.md) · [All operations](https://skmtc.dev/4chems/apis/platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/4chems/apis/platform-api/revisions/65e4f7b4dba0?raw)
