---
title: "Create Role"
method: POST
path: "/organizations/roles"
---

# Create Role

`POST /organizations/roles`

Create a custom role for the organization.

## Request body

- object
  - `name` string, required
  - `description` string
  - `permission_ids` string[]
  - `testing_permission_ids` string[]
  - `role_type` 'account' | 'organization'

## Response `201`

Created

- object
  - `id` string
  - `name` string
  - `description` string, nullable
  - `admin` boolean
  - `permission_ids` string[]
  - `testing_permission_ids` string[]
  - `role_type` string
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400` — Bad Request - Duplicate name or validation failure

---

[API](https://skmtc.net/y/apis/ai-caller.md) · [All operations](https://skmtc.net/y/apis/ai-caller/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/y/ai-caller/revisions/05b629819b49/schema)
