---
title: "Create a role"
method: POST
path: "/orgs/{orgId}/roles"
tags: ["orgs/roles"]
---

# Create a role

`POST /orgs/{orgId}/roles`

__JWT is required for this endpoint with at least one of the following scopes__: o{params.orgId}-role:w,o:w,s-o:w,o-role:w<br/><br/>__Endpoint name__: createRole

## Path parameters

- `orgId` integer, required

## Request body

- object
  - `name` string, required
  - `description` string, nullable
  - `isSiteSpecific` boolean
  - `isMfaRequired` boolean

## Response `201`

Created

- object
  - `data` object
    - `id` number, required
    - `name` string
    - `description` string, nullable
    - `isEditable` boolean
    - `isSiteSpecific` boolean
    - `isMfaRequired` boolean
    - `createdAt` string, date
    - `updatedAt` string, date
    - `userCount` integer
    - `sites` object[]
      - `id` number, required
      - `name` string
  - `meta` object
    - `accessToken` object, nullable
      - `scopeUpdatedAt` string, date
    - `siteSpecificAccess` object, nullable
      - `isSiteSpecific` boolean
      - `siteIds` integer[], nullable
      - `siteIdsByScope` object, nullable
        - `string` integer[], nullable

---

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