POST
/v1/mgmt/role/create

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Request Body

application/json

name?string
description?string
permissionNames?array<string>
string
tenantId?string
default?boolean
private?boolean

Create a role, using a valid management key.

This API endpoint allows administrators to create a new role. The endpoint takes the following three parameters:

  • name (required)
  • description (optional)
  • permissionNames (optional)

See also

curl -X POST "https://api.descope.com/v1/mgmt/role/create" \  -H "Content-Type: application/json" \  -d '{}'
{  "name": "string",  "description": "string",  "permissionNames": [    "string"  ],  "createdTime": 0,  "tenantId": "string",  "default": true,  "private": true}
export interface Response {name?: stringdescription?: stringpermissionNames?: string[]createdTime?: numbertenantId?: stringdefault?: booleanprivate?: boolean}
Was this helpful?