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

# Create a group

`POST /groups`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/groups`
- Auth: HTTP bearer

Creates a new group in the organization. Use it when the group does not exist yet and its name is not already taken by another group in the organization; to change an existing group use PATCH /groups/{group_id}, and to see which groups already exist use GET /groups.

 **Token scopes**: `groups:read`, `groups:write`

## Request body

- object
  - `data` GroupsPostRequestBodyContentApplicationJsonSchemaData, required
    - `name` string, required: The name of the group to be created.
    - `external_metadata` GroupsPostRequestBodyContentApplicationJsonSchemaDataExternalMetadata, nullable: The extra information of the group to be created.

## Response `200`

Group created successfully

- GroupsCreateGroupResponse200
  - `data` GroupsPostResponsesContentApplicationJsonSchemaData
    - `id` string: The unique identifier of the created group.
    - `name` string: The name of the created group.
    - `created_at` string, date-time: The timestamp when the group was created.
    - `updated_at` string, date-time: The timestamp when the group was last updated.
    - `external_metadata` GroupsPostResponsesContentApplicationJsonSchemaDataExternalMetadata, nullable: Extra information of the group.

## Other responses

- `400`: Invalid request payload
- `401`: Operation failed.
- `403`: Operation failed.
- `404`: Operation failed.
- `500`: Operation failed.

## Changes

- **2026-11-26** `0f7faa55c3d9`: 2 info
  - api tag `groups` added
  - api tag `Groups` removed

[Operation history](https://skmtc.dev/deel/apis/endpoints/changes/groups/post.md)

---

[API](https://skmtc.dev/deel/apis/endpoints.md) - [All operations](https://skmtc.dev/deel/apis/endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/deel/apis/endpoints/revisions/0c7142fd9f93?raw)
