POST
/
{product}
/
alert-policies
/
{alertPolicyId}
Please be aware that the Phare API is currently in beta and is subject to change.

Authorizations

Authorization
string
headerrequired

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>'.

Path Parameters

product
enum<string>
required

The Phare product

Available options:
uptime
alertPolicyId
integer
required

ID of the alert policy to update

Body

application/json
project_id
number | null
required

Restrict the use to a single project ID

name
string
required

Monitor name

Response

200 - application/json
project_id
number | null
required

Restrict the use to a single project ID

name
string
required

Monitor name

id
number
product
enum<string>

Phare product that can use the alert policy

Available options:
uptime
created_at
string

Date of creation for the entity

updated_at
string

Date of last update for the entity