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

# Create a Role

`POST /roles/`

## Request body

- object
  - `key` string, required — key of the role to be created
  - `name` string, required — name of the role to be created
  - `role_template_key` string — key of the role template to add permissions from.
  - `permission_ids` string[] — Array of permission_ids to add to the role
  - `permission_keys` string[] — Array of permission_keys to add to the role

## Response `201`

201

- object
  - `id` string
  - `url` string
  - `client_id` string
  - `name` string
  - `description` string
  - `key` string
  - `permissions` object[]
    - `id` string
    - `url` string
    - `name` string
    - `description` string
    - `key` string
    - `created_at` string
  - `created_at` string
  - `is_active` boolean

## Other responses

- `400` — 400

---

[API](https://skmtc.net/livelike/apis/engagement-suite.md) · [All operations](https://skmtc.net/livelike/apis/engagement-suite/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/livelike/engagement-suite/revisions/f3171d1c30f7/schema)
