---
title: "Update trigger status"
method: PATCH
path: "/api/agents/{agentId}/trigger/{triggerId}/status"
tags: ["Agent Triggers"]
---

# Update trigger status

`PATCH /api/agents/{agentId}/trigger/{triggerId}/status`

## Request

- Base URL: `https://app.cotool.ai`
- URL: `https://app.cotool.ai/api/agents/{agentId}/trigger/{triggerId}/status`
- Auth: HTTP bearer

Enable or disable a trigger for the specified agent.

## Path parameters

- `agentId` string, uuid, required: Unique identifier of the agent
- `triggerId` string, uuid, required: Unique identifier of the trigger

## Request body

- object: Request body for updating trigger status
  - `enabled` boolean, required: Whether the trigger should be enabled or disabled

## Response `200`

Successful response

- object: Response confirming trigger status update
  - `success` boolean, required: Whether the status update was successful
  - `enabled` boolean, required: Current enabled state of the trigger after update

## Other responses

- `400`: Bad request — input validation failed or the request was malformed
- `401`: Unauthorized — missing or invalid API key / session
- `403`: Forbidden — the authenticated user lacks the required permissions
- `500`: Internal server error

---

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