PUT
/
alerts
/
{id}
curl --request PUT \
  --url https://api.fixa.dev/v1/alerts/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "type": "latency",
  "details": {
    "lookbackPeriod": {
      "label": "<string>",
      "value": 123
    },
    "cooldownPeriod": {
      "label": "<string>",
      "value": 123
    },
    "lastAlerted": "2023-11-07T05:31:56Z",
    "percentile": "p50",
    "threshold": 123
  },
  "savedSearchId": "<string>",
  "slackNames": [],
  "ownerId": "<string>"
}'
{
  "success": true,
  "alert": {
    "id": "<string>",
    "type": "latency",
    "details": {
      "lookbackPeriod": {
        "label": "<string>",
        "value": 123
      },
      "cooldownPeriod": {
        "label": "<string>",
        "value": 123
      },
      "lastAlerted": "2023-11-07T05:31:56Z",
      "percentile": "p50",
      "threshold": 123
    },
    "savedSearchId": "<string>",
    "slackNames": [],
    "ownerId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/json
id
string
required

Unique identifier for the alert

type
enum<string>
required
Available options:
latency,
evalSet
details
object
required
savedSearchId
string
required

ID of the associated saved search

slackNames
string[]
required

Slack usernames to notify

ownerId
string
required

ID of the alert owner

Response

200
application/json
Alert updated successfully
success
boolean
required
alert
object
required