---
title: "PUT /agentcc/email-alerts/{id}/"
method: PUT
path: "/agentcc/email-alerts/{id}/"
tags: ["agentcc"]
---

# PUT /agentcc/email-alerts/{id}/

`PUT /agentcc/email-alerts/{id}/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/agentcc/email-alerts/{id}/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

CRUD + test for email alert configurations. Org-scoped.

## Request body

- AgentccEmailAlert
  - `id` string, uuid
  - `organization` string, uuid
  - `name` string, required
  - `recipients` object
  - `events` object
  - `thresholds` object
  - `provider` 'sendgrid' | 'resend' | 'smtp'
  - `provider_config` string
  - `is_active` boolean
  - `cooldown_minutes` integer
  - `last_triggered_at` string, date-time, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Response `200`

OK

- AgentccEmailAlert
  - `id` string, uuid
  - `organization` string, uuid
  - `name` string, required
  - `recipients` object
  - `events` object
  - `thresholds` object
  - `provider` 'sendgrid' | 'resend' | 'smtp'
  - `provider_config` string
  - `is_active` boolean
  - `cooldown_minutes` integer
  - `last_triggered_at` string, date-time, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
