Skip to main content
POST
/
api
/
v1
/
auth
/
roles
Create role
curl --request POST \
  --url https://api.example.com/api/v1/auth/roles \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "<string>",
  "name": "<string>",
  "scopes": [
    {
      "action": "<string>",
      "resource": "<string>"
    }
  ]
}
'
{
  "created_at": "<string>",
  "description": "<string>",
  "name": "<string>",
  "scopes": [
    {
      "action": "<string>",
      "resource": "<string>"
    }
  ],
  "updated_at": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://gns3util.saygex.xyz/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Body

application/json

Role definition

description
string
name
string
scopes
object[]

Response

Created

created_at
string
description
string
name
string
scopes
object[]
updated_at
string