---
title: "Create default AlertConfiguration"
method: POST
path: "/alerts/configurations/default"
tags: ["Alert"]
---

# Create default AlertConfiguration

`POST /alerts/configurations/default`

Create the default AlertConfiguration

## Query parameters

- `parent_namespace` 'accounts' | 'api_keys' | 'workspaces' — Namespace of the parent to which this AlertConfiguration belongs
- `parent_id` string

## Response `201`

The AlertConfiguration that was created

- AlertConfiguration
  - `id` string — ID of the AlertConfiguration
  - `parent_namespace` 'accounts' | 'api_keys' | 'workspaces' — Namespace of the parent to which this AlertConfiguration belongs
  - `parent_id` string — ID of the parent to which this AlertConfiguration belongs
  - `name` string — Name of the AlertConfiguration
  - `description` string — Description of the AlertConfiguration
  - `trigger_type` 'usage' | 'time_based' — Discriminator for the type of trigger for this AlertConfiguration
  - `trigger` object — Configuration of the trigger for this AlertConfiguration. Type depends on trigger_type (AlertConfigurationUsageTrigger for usage, AlertConfigurationTimeBasedTrigger for time_based)
  - `targets` AlertTarget[] — Configuration of the targets for this AlertConfiguration
    - `medium` 'email' — Medium of the target
    - `target` string — The target
  - `enabled` boolean — Whether or not this configuration is enabled
  - `created_time` integer — Time at which the AlertConfiguration was created
  - `created_by_id` string — The ID of the user who created this AlertConfiguration
  - `last_updated_time` integer — Time at which the AlertConfiguration was last updated
  - `last_updated_by_id` string — The ID of the user who last updated this AlertConfiguration

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `default` — Unknown error

---

[API](https://skmtc.net/mabl/apis/mabl-api.md) · [All operations](https://skmtc.net/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mabl/mabl-api/revisions/d0fc0114da66/schema)
