---
title: "Alert create"
method: POST
path: "/alerts"
tags: ["v1.1"]
---

# Alert create

`POST /alerts`

## Request

- Base URL: `https://docs.tibco.com/lv/api/v1`
- URL: `https://docs.tibco.com/lv/api/v1/alerts`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/tibco/apis/liveview-rest-api/docs/alerts/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates the alert.

## Request body

- AlertRule
  - `status` string
  - `description` string
  - `message` string
  - `name` string, required
  - `severity` integer
  - `quiescence` integer
  - `enabled` boolean
  - `owner` string
  - `created` integer
  - `lastUpdate` integer
  - `id` string
  - `valid` boolean
  - `alertGroup` string: Alert Group. Only since v1.2.
  - `actions` ActionType[]
    - `type` 'send_email' | 'exec_os' | 'exec_java' | 'publish_alert' | 'send_tuple' | 'delete_query' | 'lv_publish' | 'invoke_http', required
    - `description` string
    - `enabled` boolean, required

## Response `200`

Success status (message contains ID if sucessfull)

- StatusType
  - `success` boolean, required
  - `message` string

## Other responses

- `401`: Missing authentication
- `403`: User doesn't have required permissions
- `422`: Validation failed

---

[API](https://skmtc.dev/tibco/apis/liveview-rest-api.md) - [All operations](https://skmtc.dev/tibco/apis/liveview-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tibco/apis/liveview-rest-api/revisions/fca44d5426d9?raw)
