---
title: "Set one automation's enabled state"
method: PATCH
path: "/v1/projects/{project_id}/automation-contract/automations/{automation_id}"
tags: ["Automation"]
---

# Set one automation's enabled state

`PATCH /v1/projects/{project_id}/automation-contract/automations/{automation_id}`

## Request

- Base URL: `https://api.agentry.sh`
- URL: `https://api.agentry.sh/v1/projects/{project_id}/automation-contract/automations/{automation_id}`
- Auth: HTTP bearer

Owner-only per-automation switch guarded by the exact current contract ETag.

## Path parameters

- `project_id` string, required
- `automation_id` string, required

## Headers

- `If-Match` string, required

## Request body

- object
  - `enabled` boolean, required
  - `reason` string, required

## Response `200`

OK

- object
  - `project_id` string, required
  - `automation_id` string
  - `enabled` boolean, required
  - `paused_at` integer
  - `pause_reason` string
  - `revision` integer, required
  - `etag` string, required
  - `next_action` string, required

## Other responses

- `default`: Error

---

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