POST
/
alert-rules
curl --request POST \
  --url https://api.phare.io/alert-rules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "event": "uptime.monitor.created",
  "project_id": 1,
  "integration_id": 1,
  "rate_limit": 5
}'
{
  "id": 1,
  "event": "uptime.monitor.created",
  "project_id": 1,
  "integration_id": 1,
  "rate_limit": 5,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}
Please be aware that the Phare API is currently in beta and is subject to change.

Authorizations

Authorization
string
header
required

Use a user token to access authenticated routes. The token must be specified in the Authorization HTTP header with the following format 'Authorization: Bearer <token>'.

Body

application/json

Alert rule request

The body is of type object.

Response

201
application/json

Success, alert rule created

The response is of type object.