Skip to content

/api/v1/admin/observability/alert-rules/{id} (PUT)

PUT
/api/v1/admin/observability/alert-rules/{id}
curl --request PUT \
--url https://nbaproplab.com/api/v1/admin/observability/alert-rules/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "name": "example", "conditionType": "example", "thresholdValue": 1, "notificationChannel": "example", "isEnabled": true, "cooldownMinutes": 1 }'
id
required
integer format: int32
/^-?(?:0|[1-9]\d*)$/
object
name
required
null | string
conditionType
required
null | string
thresholdValue
required
null | number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/
notificationChannel
required
null | string
isEnabled
required
null | boolean
cooldownMinutes
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
Example generated
{
"name": "example",
"conditionType": "example",
"thresholdValue": 1,
"notificationChannel": "example",
"isEnabled": true,
"cooldownMinutes": 1
}

OK

object
id
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
name
required
string
conditionType
required
string
thresholdValue
required
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/
notificationChannel
required
string
isEnabled
required
boolean
cooldownMinutes
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
createdAt
required
string format: date-time
updatedAt
required
string format: date-time

Authentication required.

Media type application/problem+json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
Example generated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Insufficient permissions or tier.

Media type application/problem+json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
Example generated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Not Found

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string