---
title: "Create group"
method: POST
path: "/groups"
tags: ["Groups"]
---

# Create group

`POST /groups`

Creates a new user group with the current user as the owner.

## Request body

- GroupCreate
  - `name` string, required
  - `description` string, nullable
  - `type` 'domain' | 'list', required
  - `domain` string, fqdn — Required if type is 'domain'.
  - `members` string[] — Array of user emails. Only applicable if type is 'list'.

## Response `201`

Group created successfully.

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

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `409` — Conflict
- `422` — Unprocessable Entity

## Changes

- **2025-07-14** `9aec27988ad3` — 2 breaking, 1 info
  - the `domain` request property type/format changed from `string`/`hostname` to `string`/`fqdn`
  - the `domain` response's property type/format changed from `string`/`hostname` to `string`/`fqdn` for status `201`
  - added the non-success response with the status `404`
- **2025-07-14** `128cf3db212c` — 1 warning, 3 info
  - removed the request property `users`
  - added the new optional request property `members`
  - added the optional property `domain` to the response with the `201` status
  - added the optional property `members` to the response with the `201` status
- **2025-07-13** `0d7f3c750979` — 1 breaking, 3 warning, 2 info
  - the `domain` request property type/format changed from `string`/`fqdn` to `string`/`hostname`
  - removed the request property `members`
  - removed the optional property `domain` from the response with the `201` status
  - removed the optional property `members` from the response with the `201` status
  - …2 more

[Change history](https://skmtc.dev/osdg-iiith/apis/forms-portal-api/changes/groups/post.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/7761ba23f677/schema)
