# Update status page group

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

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

[[path_param]]
name = "status_page_group_id"
description = "The ID of the status page group you want to update."
required = true
type = "string"

[[body_param]]
name = "name"
description = "A name for 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 status page 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 status page group data.'''
body = '''{
  "data": {
    "id": "1372854",
    "type": "status_page_group",
    "attributes": {
      "name": "Production Pages (Renamed)",
      "sort_index": 0,
      "created_at": "2024-11-07T11:33:24.408Z",
      "updated_at": "2024-11-08T10:05:00.000Z",
      "team_name": "Test Team"
    }
  }
}'''
[/responses]

#### Example cURL

```shell
[label Example]
curl --request PATCH \
  --url https://uptime.betterstack.com/api/v2/status-page-groups/1372854 \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
	"name": "Production Pages (Renamed)",
  "sort_index": 0
}'
```

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