---
title: "Add k8s alert"
method: POST
path: "/api/v1/kubernetes/alert/{projectId}"
tags: ["Kubernetes"]
---

# Add k8s alert

`POST /api/v1/kubernetes/alert/{projectId}`

## Path parameters

- `projectId` integer, required

## Request body

- CreateAlertDto
  - `alerts` KubernetesAlertCreateDto[], nullable
    - `status` string, nullable
    - `labels` unknown
    - `annotations` KubernetesAnnotations
      - `description` string, nullable
      - `title` string, nullable
    - `startsAt` string, date-time
    - `endsAt` string, date-time
    - `fingerprint` string, nullable
  - `status` string, nullable

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `500` — Internal Server Error

---

[API](https://skmtc.dev/taikun/apis/taikun-webapi.md) · [All operations](https://skmtc.dev/taikun/apis/taikun-webapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/taikun/taikun-webapi/revisions/09395964d191/schema)
