Update a severity

Update an existing severity.

POST https://uptime.betterstack.com/api/v2/urgencies/{urgency_id}

URL parameters

urgency_id
required integer

Headers

Authorization
required string
Content_Type
string

Body parameters

name
required string
sms
required boolean
call
required boolean
email
required boolean
push
required boolean
200

Response body

{
  "data": {
    "id": "456",
    "type": "urgency",
    "attributes": {
      "name": "Edited severity",
      "team_name": "Test team",
      "sms": false,
      "call": true,
      "email": false,
      "push": true
    }
}

Example cURL

Example
curl -X "PATCH" "https://uptime.betterstack.com/api/v2/urgencies/456" \
-H "Authorization: Bearer $TOKEN" \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{ "name": "Edited severity", "sms": false, "call": true, "email": false, "push": true }'