# Update heartbeat group

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

[endpoint]
base_url = "https://uptime.betterstack.com"
path = "/api/v2/heartbeat-groups/{heartbeat_group_id}"
method = "PATCH"

[[path_param]]
name = "heartbeat_group_id"
description = "The ID of the heartbeat group you want to update"
required = true
type = "string"

[[body_param]]
name = "period"
description = "How often should we expect this heartbeat? In seconds Minimum value: `30` seconds"
required = false
type = "integer"

[[body_param]]
name = "paused"
description = "Set to `true` to pause monitoring for any existing heartbeats in the group — we won't notify you about downtime.  Set to `false` to resume monitoring for any existing heartbeats in the group."
required = false
type = "boolean"

[[body_param]]
name = "name"
description = "A 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 heartbeat groups."
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 monitor data'''
body = '''{
  "data": {
    "id": "95251342",
    "type": "monitor_group",
    "attributes": {
      "name": "Backend services 2",
      "sort_index": 0,
      "created_at": "2020-10-03T20:20:43.547Z",
      "updated_at": "2020-10-03T20:20:43.547Z",
      "team_name": "Test team",
      "paused": false
    }
  }
}'''
[/responses]

#### Example cURL - Change name only

```shell
curl --request PATCH \
  --url https://uptime.betterstack.com/api/v2/heartbeat-groups/95251342 \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
	"name": "Backend services 2"
}'
```

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