# Update severity group

Update the attributes of an existing severity group. Send only the parameters you wish to change (e.g. `name`).

[endpoint]
base_url = "https://uptime.betterstack.com"
path = "/api/v2/urgency-groups/:urgency_group_id"
method = "PATCH"

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

[[body_param]]
name = "name"
description = "The name of the group that you can see in the dashboard."
required = false
type = "string"

[[body_param]]
name = "sort_index"
description = "Set sort_index to specify how to sort your severity."
required = false
type = "integer"

[[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 updated severity group data'''
body = '''{
  "data": {
    "id": "1234567",
    "type": "urgency_group",
    "attributes": {
      "name": "Example",
      "sort_index": null,
      "created_at": "2020-10-03T20:20:43.547Z",
      "updated_at": "2020-10-03T20:20:43.547Z",
      "team_name": "Testing"
    }
  }
}'''

[/responses]

#### Example cURL 

```shell
[label Example]
curl --request PATCH \
  --url https://uptime.betterstack.com/api/v2/urgency-groups/1234567 \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
	"name": "Example"
}'
```

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