---
title: "Update an existing group"
method: PUT
path: "/segments/{id}"
tags: ["groups"]
---

# Update an existing group

`PUT /segments/{id}`

Update an existing group.

## Request body

- object
  - `name` string — The group's name.

## Response `200`

OK

- BaseGroup
  - `id` integer — The ID of the resource.
  - `created_at` string, date-time — The date and time when the resource was created.
  - `updated_at` string, date-time — The date and time when the resource was last updated.
  - `name` string — The name of the group.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `422` — Unprocessable entity
- `default` — Unexpected error

---

[API](https://skmtc.net/mailbadger/apis/mailbadger-api.md) · [All operations](https://skmtc.net/mailbadger/apis/mailbadger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mailbadger/mailbadger-api/versions/3a7ef49250a1/schema)
