---
title: "Patch a live instance's published policy spec (v1 alias)."
method: PATCH
path: "/automations/{id}"
tags: ["automations"]
---

# Patch a live instance's published policy spec (v1 alias).

`PATCH /automations/{id}`

## Request

- Base URL: `https://api.livegraph.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.livegraph.ai/automations/{id}`
- Auth: one of:
  - API key in cookie `livegraph_session`
  - API key in header `x-api-key`

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `specPatch` object, required
    - `autoPublishTiers` string[], nullable
    - `codeTierMaxFiles` integer, nullable
    - `codeTierMaxLines` integer, nullable
    - `protectedPathsExtra` string[], nullable
    - `autoPathAllow` string[], nullable
    - `protectedFileBudgets` object, nullable
    - `autonomous` boolean, nullable

## Response `200`

Success — see summary for the response shape.

## Other responses

- `4XX`: Client error — body is the shared {error, code?} envelope.

---

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