# Update severity

Update an existing severity.

[endpoint]
base_url = "https://uptime.betterstack.com"
path = "/api/v2/urgencies/{urgency_id}"
method = "PATCH"

[[path_param]]
name = "urgency_id"
description = "The ID of the severity you want to update"
required = true
type = "integer"

[[body_param]]
name = "name"
description = "The name of this severity."
required = true
type = "string"

[[body_param]]
name = "sms"
description = "Whether to send SMS when a new incident is created."
required = true
type = "boolean"

[[body_param]]
name = "call"
description = "Whether to call when a new incident is created."
required = true
type = "boolean"

[[body_param]]
name = "email"
description = "Whether to send email when a new incident is created."
required = true
type = "boolean"

[[body_param]]
name = "push"
description = "Whether to send push notification when a new incident is created."
required = true
type = "boolean"

[[body_param]]
name = "critical_alert"
description = "Should we send a critical push notification that ignores the mute switch and Do not Disturb mode?"
required = false
type = "boolean"

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"

[[header]]
name = "Content_Type"
description = "application/json"
required = false
type = "string"
[/endpoint]


[responses]
[[response]]
status = 200
description = '''Returns the updated escalation policy'''
body = '''{
  "data": {
    "id": "456",
    "type": "urgency",
    "attributes": {
      "name": "Edited severity",
      "team_name": "Test team",
      "sms": false,
      "call": true,
      "email": false,
      "push": true
    }
}'''

[/responses]

#### Example cURL 

```shell
[label 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 }'
```

[info]
#### Looking for the details of a specific parameter?
Explore [the list of all severities API parameters](https://betterstack.com/docs/uptime/api/severities-api-response-params/)
[/info]

