Skip to main content

Get a single role

GET <your-unleash-url>/api/admin/roles/:roleId

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Get a single role by role id

Request

Path Parameters

  • roleId string required
Responses

roleWithPermissionsSchema

Schema
  • id number required

    The role id

  • type string required

    A role can either be a global root role, or a project role or a custom project role or a custom global root-custom role

  • name string required

    The name of the role

  • description string

    A more detailed description of the role and what use it's intended for

  • permissions object[]required

    A list of permissions assigned to this role

  • Array [
  • id integer required

    The identifier for this permission

  • name string required

    The name of this permission

  • displayName string required

    The name to display in listings of permissions

  • type string required

    What level this permission applies to. Either root, project or the name of the environment it applies to

  • environment string

    Which environment this permission applies to

  • ]

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Request

Base URL
<your-unleash-url>
Security Scheme
apiKey
roleId — path required
curl / cURL
curl -L -X GET '<your-unleash-url>/api/admin/roles/:roleId' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'