---
title: "Create group"
method: POST
path: "/api/v1/org/groups"
tags: ["Organizations"]
---

# Create group

`POST /api/v1/org/groups`

Creates a new group in the current user's organization

## Request body

- CreateGroup — From T, pick a set of properties whose keys are in the union K
  - `name` string, required — A friendly name for the group
  - `members` PickGroupMemberUserUuid[]
    - `userUuid` string, uuid, required — Unique id for the user

## Response `200`

Ok

- ApiCreateGroupResponse
  - `results` GroupWithMembers, required — Details for a group including a list of the group's members.
    - `organizationUuid` string, required — The UUID of the organization that the group belongs to
    - `updatedByUserUuid` string, nullable, required — The UUID of the user that last updated the group
    - `updatedAt` string, date-time, required — The time that the group was last updated
    - `createdByUserUuid` string, nullable, required — The UUID of the user that created the group
    - `createdAt` string, date-time, required — The time that the group was created
    - `name` string, required — A friendly name for the group
    - `uuid` string, required — The group's UUID
    - `memberUuids` string[], required
    - `members` GroupMember[], required — A list of the group's members.
      - `lastName` string, required — The user's last name
      - `firstName` string, required — The user's first name
      - `email` string, required — Primary email address for the user
      - `userUuid` string, uuid, required — Unique id for the user
  - `status` 'ok', required

## Other responses

- `default` — Error

---

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