---
title: "Create Role"
method: POST
path: "/roles"
tags: ["Role and Permission"]
---

# Create Role

`POST /roles`

Creates a custom role.

See [List Permissions](#/operations/ListPermissions) for available permission names.

## Query parameters

- `fields` string

## Headers

- `Authorization` string, required
- `X-LC-Tenant` string, required

## Request body

- RoleCreateRequest — Role update request.
  - `name` string — Name of the role.
  - `description` string — Description of the role.
  - `permissions` string[] — List of permission names associated with role.

## Response `200`

- Role — Role in the account.
  - `id` string, required — The identifier of the role.
  - `type` 'provisioned' | 'custom', required — The role type.
  - `name` string, required — Name of the role.
  - `description` string — Description of the role.
  - `permissions` Permission[] — List of permissions associated with role.
    - `name` string, required — Name of the permission.
    - `description` string, required — Human-readable description of the permission.
    - `category` string, required — The category a permission belongs to.
    - `entityType` PermissionEntityType, required — The entity type a permission applies to.
      - `name` string, required — Name of the entity type.
      - `description` string, required — Human-readable description of the entity type.
    - `dependsOn` string[], required — List of permission names that this permission depends on. Empty array if no dependencies.

## Other responses

- `400` — Error codes: * “invalid”: Invalid input in the request mentioned in the “name” field on the error response. * "minSize": Minimum size exceeded for the value mentioned in the "name" field on the error response. * "maxSize": Maximum size exceeded for the value mentioned in the "name" field on the error response. * "missing": Missing required field for the value mentioned in the "name" field on the error response.
- `401` — The user could not be identified.
- `403` — Error codes: * "forbidden": the authenticated user is not allowed to create the resource.
- `409` — Error codes: * “duplicate”: Role with the same name already exists.

---

[API](https://skmtc.net/rws/apis/trados-cloud-platform-api.md) · [All operations](https://skmtc.net/rws/apis/trados-cloud-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rws/trados-cloud-platform-api/revisions/d42dac7c28a3/schema)
