---
title: "Create a custom content-permission role (owner/admin only)"
method: POST
path: "/groups/{groupId}/roles"
tags: ["Groups"]
---

# Create a custom content-permission role (owner/admin only)

`POST /groups/{groupId}/roles`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/groups/{groupId}/roles`
- Auth: HTTP bearer

## Path parameters

- `groupId` string, uuid, required

## Request body

- CreateGroupRoleRequest
  - `name` string, required

## Response `201`

Created

- object
  - `data` GroupRole, required
    - `id` string, uuid, required
    - `name` string, required
    - `createdAt` string, required
  - `meta` object, required
    - `requestId` string, required

## Other responses

- `422`: A role with this name already exists in the group

---

[API](https://skmtc.dev/whatareyoudo/apis/whatcha-api.md) · [All operations](https://skmtc.dev/whatareyoudo/apis/whatcha-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatareyoudo/apis/whatcha-api/revisions/48dd8a54abea?raw)
