---
title: "Create an authorization group"
method: POST
path: "/groups"
tags: ["Authorization"]
---

# Create an authorization group

`POST /groups`

Creates an authorization group.

## Request body

- CreateGroupDto
  - `name` string, nullable — s Name of the group.
  - `principalIds` string[], nullable — Principals that are members of the group. This can be either user ids or other group ids.

## Response `202`

When request is accepted. Returns a hypermedia 'Link' object of the authorization group to be created.

- Link
  - `id` string, nullable
  - `href` string, nullable
  - `relation` string, nullable
  - `method` string, nullable

## Other responses

- `400` — When request is invalid.
- `404` — Not Found

---

[API](https://skmtc.net/smokeball/apis/api.md) · [All operations](https://skmtc.net/smokeball/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smokeball/api/revisions/197984da9b42/schema)
