---
title: "Update group domain"
method: PATCH
path: "/groups/{groupId}/domain"
tags: ["Groups"]
---

# Update group domain

`PATCH /groups/{groupId}/domain`

Updates the domain for a group of 'DOMAIN' type. Requires ownership.

## Request body

- GroupDomainUpdate
  - `domain` string, hostname, required

## Response `200`

Group domain updated successfully.

- Group
  - `id` string, ulid, required
  - `owner` string, ulid, required
  - `name` string, required
  - `description` string, nullable
  - `type` 'domain' | 'list', required
  - `domain` string, hostname — Present if type is 'domain'.
  - `members` string[] — Array of user emails. Present if type is 'list'.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `422` — Unprocessable Entity

## Changes

- **2025-07-14** `128cf3db212c` — 2 info
  - added the optional property `domain` to the response with the `200` status
  - added the optional property `members` to the response with the `200` status
- **2025-07-13** `02015e1343c5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/osdg-iiith/apis/forms-portal-api/changes/groups/:groupId/domain/patch.md)

---

[API](https://skmtc.dev/osdg-iiith/apis/forms-portal-api.md) · [All operations](https://skmtc.dev/osdg-iiith/apis/forms-portal-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/osdg-iiith/forms-portal-api/revisions/128cf3db212c/schema)
