---
title: "Update a contact group"
method: PATCH
path: "/v1/contact-groups/{id}"
tags: ["Contact Groups"]
---

# Update a contact group

`PATCH /v1/contact-groups/{id}`

## Request

- Base URL: `https://api.honkio.ca`
- URL: `https://api.honkio.ca/v1/contact-groups/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Requires `contact_groups:m`.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `description` string

## Response `200`

The updated group.

- ContactGroup: A contact group with every member embedded.
  - `id` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `member_count` integer, required
  - `members` object[], required
    - `id` string, required: The contact id.
    - `phone_number` string, nullable, required
    - `name` string, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `401`: Missing, invalid, revoked or expired API key.
- `402`: The account has no balance, or a LIVE key was used before the first top-up.
- `403`: LIVE_KEY_REQUIRED when a test key tries to change something a live key's allow/deny list references. Also FORBIDDEN when the key lacks the permission.
- `404`: CONTACT_GROUP_NOT_FOUND.
- `409`: CONTACT_GROUP_ALREADY_EXISTS: the name is taken.
- `422`: VALIDATION_ERROR: the request failed validation; details names the fields.
- `429`: Rate limit reached: 100 requests per second per account, or a route-specific limit (Retry-After set where one applies).
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/honkio/apis/honkio-api.md) · [All operations](https://skmtc.dev/honkio/apis/honkio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/honkio/apis/honkio-api/revisions/ce4ed3fe9691?raw)
