---
title: "Update an existing automation"
method: PATCH
path: "/v1/tasks/{taskId}/automations/{automationId}"
tags: ["Task Automations"]
---

# Update an existing automation

`PATCH /v1/tasks/{taskId}/automations/{automationId}`

Update the name or description of an existing automation

## Path parameters

- `taskId` string, required
- `automationId` string, required

## Request body

- UpdateAutomationDto
  - `name` string — Automation name
  - `description` string — Automation description
  - `isEnabled` boolean — Whether the automation is enabled
  - `evaluationCriteria` string — Evaluation criteria for the automation

## Response `200`

Automation updated successfully

- object
  - `success` boolean
  - `automation` object
    - `id` string
    - `name` string
    - `description` string

## Other responses

- `400` — Bad request - Invalid automation ID or data
- `401` — Unauthorized - Invalid authentication
- `404` — Automation not found

---

[API](https://skmtc.dev/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.dev/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/ac8d1e4e2e79/schema)
