---
title: "Create Custom Role"
method: POST
path: "/api/v1/account/roles"
tags: ["account"]
---

# Create Custom Role

`POST /api/v1/account/roles`

## Request

- Base URL: `https://app.kaminari.ad`
- URL: `https://app.kaminari.ad/api/v1/account/roles`
- Auth: HTTP bearer

Create a custom role for the organization.

## Request body

- CreateCustomRoleRequest: Request body for custom role creation.
  - `name` string, required
  - `permissions` string[], required

## Response `201`

Successful Response

- RoleResponse: Role details with associated permission codenames.
  - `id` string, uuid, required
  - `name` string, required
  - `scope` string, required
  - `is_system` boolean, required
  - `permissions` string[], required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kaminari/apis/kaminari-ad-api.md) · [All operations](https://skmtc.dev/kaminari/apis/kaminari-ad-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kaminari/apis/kaminari-ad-api/revisions/013f86e2fd32?raw)
