---
title: "Upsert Alert Config"
method: POST
path: "/api/v1/monitoring/alerts/config"
tags: ["monitoring", "monitoring"]
---

# Upsert Alert Config

`POST /api/v1/monitoring/alerts/config`

## Request

- Base URL: `https://app.goodleads.club` (the document declares no server; this is the origin it was published from)
- URL: `https://app.goodleads.club/api/v1/monitoring/alerts/config`
- Auth: API key in header `X-API-Key`

Create or update an alert threshold configuration.

## Request body

- AlertConfigRequest
  - `metric_name` string, required
  - `threshold_value` number, required
  - `direction` string, required
  - `state` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/goodleads/apis/formation-gtm-api.md) · [All operations](https://skmtc.dev/goodleads/apis/formation-gtm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/goodleads/apis/formation-gtm-api/revisions/2068d13a82cf?raw)
