---
title: "Create a role with the given name"
method: POST
path: "/roles"
tags: ["roles"]
---

# Create a role with the given name

`POST /roles`

## Query parameters

- `orgId` integer

## Request body

- CreateRoleRequest
  - `description` string, required
  - `name` string
  - `permissions` string[]

## Response `201`

Created

- CreateRoleResponse
  - `description` string
  - `name` string
  - `permissions` string[]

## Other responses

- `400` — Bad request
- `403` — Operation not allowed
- `409` — Duplicate role name

---

[API](https://skmtc.net/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.net/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/versions/13316c9fe5ff/schema)
