Skip to main content
PUT
/
alerts
/
rules
/
{ruleId}
Update an alert rule
curl --request PUT \
  --url https://api.artosai.com/alerts/rules/{ruleId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "rule_type": "<string>",
  "conditions": {},
  "notification": {},
  "enabled": true
}
'
{
  "rule_id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "rule_type": "<string>",
  "conditions": {},
  "notification": {},
  "enabled": true,
  "created_at": "2023-11-07T05:31:56Z",
  "last_triggered": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

ruleId
string
required

Body

application/json
name
string
description
string
rule_type
string
conditions
object
notification
object
enabled
boolean

Response

200 - application/json

Alert rule updated

Configuration for an alert rule.

rule_id
string
name
string
description
string
rule_type
string
conditions
object
notification
object
enabled
boolean
created_at
string<date-time>
last_triggered
string<date-time>