---
title: "Update"
method: PATCH
path: "/v1/groups/{group_id}"
tags: ["DatabaseGroup"]
---

# Update

`PATCH /v1/groups/{group_id}`

## Request

- Base URL: `https://api.bunny.net/database`
- URL: `https://api.bunny.net/database/v1/groups/{group_id}`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `AccessKey`

Update a DatabaseGroup for the user.

## Path parameters

- `group_id` string, required: [DatabaseGroupId] is a `group_<ulid>`

## Request body

- UpdateDatabaseGroupPayload
  - `display_name` string, nullable: A [DatabaseGroup] display name. Must be less than 64 Characters.
  - `primary_regions` PossibleRegion[], nullable: The primary regions expected for the Database
  - `replicas_regions` PossibleRegion[], nullable: The replicas regions expected for the Database

## Response `200`

- UpdateDatabaseGroupResponse
  - `group` DatabaseGroup, required: [DatabaseGroup] returned by the API
    - `id` string, required: [DatabaseGroupId] is a `group_<ulid>`
    - `name` string, required: The [DatabaseGroup] name, unique across your account.
    - `storage_region` string, required: The current Storage Region used to store your databases.
    - `primary_regions` PossibleRegion[], required: The Primary Regions available for your Database, when your database need to be commissionned, it'll be comissionned in one of those regions.
    - `replicas_regions` PossibleRegion[], required: The Secondary Regions are the regions where your replicas will be able to be commissionned.

## Other responses

- `401`: A default error response for most API errors.
- `409`: A default error response for most API errors.
- `500`: A default error response for most API errors.

---

[API](https://skmtc.dev/bunny/apis/bunny-database-backend-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-database-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-database-backend-api/revisions/f3bb69bad6b6?raw)
