---
title: "Set Selection Gate"
method: PUT
path: "/api/v1/agents/selection/gate"
tags: ["experiments"]
---

# Set Selection Gate

`PUT /api/v1/agents/selection/gate`

Turn the selector on or off for this workspace, in seconds rather than in a deploy.

This exists because arbitration CANCELS real scheduled runs and a cancelled run keeps
its dedup slot, so the people silenced during a bad window are not recovered by the
next poll. A kill switch whose latency is a task-definition revision plus a service
update is not a kill switch. Failures are surfaced rather than swallowed: an operator
reaching for this has to find out immediately if it did not take.

## Headers

- `authorization` string, nullable — Bearer <token>

## Request body

- SelectionGateUpdate
  - `mode` string, required
  - `enabled` boolean, nullable

## Response `200`

Successful Response

- EnvelopeDict
  - `data` object, required
  - `meta` Meta
    - `request_id` string
    - `timestamp` string, date-time
    - `total` integer, nullable
    - `truncated` boolean, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/minro/apis/minro-cs-platform.md) · [All operations](https://skmtc.dev/minro/apis/minro-cs-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/minro/minro-cs-platform/revisions/eb854265cf29/schema)
