Alert Global

Update

Update an existing Alert Global record by ID.

put/api/cp/alert-global/{id}

Path parameters

idinteger required

Id identifier

Request body

idinteger

Id

account_idinteger

Account Id (references account.id)

titlestring

Title

areastring required

Area

operator'<' | '<=' | '=' | '>' | '>=' | 'always'

Operator

thresholdnumber

Threshold

reset_thresholdnumber

Reset Threshold

sample_periodinteger

Sample Period

templatestring

Template

penaltyinteger

Penalty

cronstring

Cron

sandbox_idinteger

Sandbox Id

last_ranstring date-time nullable

Last Ran

next_runstring date-time

Next Run

tagstring

Tag

notice_level'none' | 'warning' | 'error' required

Notice Level

table_changestring

Table Change

querystring

Query

Example request

{
  "id": 12345,
  "account_id": 1,
  "title": "Example Name",
  "area": "example_area",
  "operator": "<",
  "threshold": 99.99,
  "reset_threshold": 99.99,
  "sample_period": 123,
  "template": "example_template",
  "penalty": 123,
  "cron": "example_cron",
  "sandbox_id": 1,
  "last_ran": "2025-01-17T10:30:00Z",
  "next_run": "2025-01-17T10:30:00Z",
  "tag": "example_tag",
  "notice_level": "none",
  "table_change": "example_table_change",
  "query": "Sample query text content"
}

Response

Operation completed successfully

statusstring

Operation status

Example response

{
  "status": "OK"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.