Skip to main content
PATCH
/
rtstream
/
{stream_id}
/
index
/
{scene_index_id}
/
alert
/
{alert_id}
/
status
Update RTStream alert status
curl --request PATCH \
  --url https://api.videodb.io/rtstream/{stream_id}/index/{scene_index_id}/alert/{alert_id}/status \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "status": "disabled"
}
'
{
  "success": true,
  "message": "Operation successful"
}
Enable or disable an alert on a stream’s scene index.
  • status must be enabled or disabled
  • Disabled alerts stop sending notifications but are not deleted
  • Re-enable by setting status back to enabled

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Path Parameters

stream_id
string
required
Example:

"rts-12345"

scene_index_id
string
required
Example:

"scene-idx-12345"

alert_id
string
required
Example:

"alert-12345"

Body

application/json
status
enum<string>
required
Available options:
enabled,
disabled
Example:

"disabled"

Response

200 - application/json

Alert status updated

success
boolean
Example:

true

message
string
Example:

"Operation successful"