---
title: "Update default alert routing"
method: PUT
path: "/api/alert-routing/defaults"
tags: ["Alerts"]
---

# Update default alert routing

`PUT /api/alert-routing/defaults`

## Request

- Base URL: `https://app.cotool.ai`
- URL: `https://app.cotool.ai/api/alert-routing/defaults`
- Auth: HTTP bearer

Update the organization-wide default agent for alerts without an explicit route.

## Request body

- object
  - `defaultResponseAgentId` string, uuid, nullable, required: Default agent for alerts without an explicit route

## Response `200`

Successful response

- object
  - `defaultSettings` object, required
    - `organizationId` string, uuid, required: Organization that owns these alert routing defaults
    - `defaultResponseAgentId` string, uuid, nullable, required: Default agent for alerts without an explicit route
    - `defaultResponseAgentName` string, nullable, required: Display name for the configured default alert agent
    - `createdAt` string, required: ISO timestamp when the organization row was created
    - `updatedAt` string, required: ISO timestamp when the routing default was last updated
  - `responseAgents` object[], required
    - `id` string, uuid, required: Response agent identifier
    - `name` string, required: Response agent display name

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