---
title: "Update trigger alert-created notification"
method: PUT
path: "/api/agents/{agentId}/trigger/{triggerId}/alert-created-notification"
tags: ["Agent Triggers"]
---

# Update trigger alert-created notification

`PUT /api/agents/{agentId}/trigger/{triggerId}/alert-created-notification`

## Request

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

Choose the Slack destinations notified when the trigger creates an alert. The alert's status updates and escalations reply in the thread that notification starts.

## 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 choosing where a trigger notifies when it creates an alert
  - `destinationIds` string[], required: Slack destinations to notify when the trigger creates an alert. Empty turns the notification off.

## Response `200`

Successful response

- object: Response confirming where the trigger notifies when it creates an alert
  - `success` boolean, required: Whether the update was successful
  - `destinationIds` string[], required: Destinations notified when the trigger creates an alert

## 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)
