---
title: "Update Automation Rules"
method: PATCH
path: "/api/v1/accounts/{account_id}/automation_rules/{id}"
tags: ["Automation Rules"]
---

# Update Automation Rules

`PATCH /api/v1/accounts/{account_id}/automation_rules/{id}`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/accounts/{account_id}/automation_rules/{id}`
- Auth: API key in header `api_access_token`

## Path parameters

- `account_id` integer, required
- `id` integer, required

## Response `200`

Success

- object
  - `payload` object
  - `id` string
  - `account_id` integer
  - `name` string
  - `description` string
  - `event_name` string
  - `conditions` object
  - `actions` object
  - `created_on` string
  - `updated_on` string
  - `active` boolean
  - `order_id` integer
  - `files` string

## Other responses

- `401`: Unauthorized
- `404`: Not Found

---

[API](https://skmtc.dev/cloudhumans/apis/cloudchat-api.md) - [All operations](https://skmtc.dev/cloudhumans/apis/cloudchat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudhumans/apis/cloudchat-api/revisions/18199bd17cc5?raw)
