---
title: "Update Thresholds"
method: POST
path: "/api/admin/ai-thresholds"
tags: ["Admin"]
---

# Update Thresholds

`POST /api/admin/ai-thresholds`

## Request

- Base URL: `https://api.flagpost.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.flagpost.ai/api/admin/ai-thresholds`
- Auth: none declared

Update cost alert thresholds.

## Headers

- `x-task-secret` string, nullable

## Request body

- ThresholdsRequest
  - `query_usd` number, nullable
  - `business_daily_usd` number, nullable
  - `platform_daily_usd` number, nullable
  - `kill_switch_daily_usd` number, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/flagpost/apis/flagpost-api.md) - [All operations](https://skmtc.dev/flagpost/apis/flagpost-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flagpost/apis/flagpost-api/revisions/0308cef485ca?raw)
