---
title: "Creating acl groups"
method: POST
path: "/acl/group"
tags: ["Acl Groups"]
---

# Creating acl groups

`POST /acl/group`

## Request body

- AclGroupCreate
  - `sName` string, required
  - `sRoleId` 'admin' | 'booker' | 'reporter' | 'manager' | 'account' | 'vacancy_manager' | 'compliance' | 'data_processor', required
  - `arrResources` ResourceItem[], required
    - `mId` string, required
    - `sResource` string, required

## Response `201`

Return the created acl group

- AclGroupsPostReturn
  - `id` string, required
  - `sName` string, required
  - `sRoleId` 'admin' | 'booker' | 'reporter' | 'manager' | 'account' | 'vacancy_manager' | 'compliance' | 'data_processor', required
  - `arrResources` ResourceItem[]
    - `mId` string, required
    - `sResource` string, required
  - `objTopLevelResource` ResourceItem, required
    - `mId` string, required
    - `sResource` string, required
  - `bSystemGroup` boolean

## Other responses

- `400` — Validation Error. Usually caused by a missing or invalid parameters.
- `401` — Authorization Error. Thrown if the user does not have access to resource.
- `404` — No such record
- `409` — Conflict error. Caused by creating duplicate group names
- `default` — unexpected error

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) · [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/staffshift/staffshift-api-gateway/revisions/6e2cb83db3a9/schema)
