Skip to main content
POST
/
v1
/
console
/
roles
Create Role
curl --request POST \
  --url http://localhost:8000/v1/console/roles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>"
}
'
{
  "data": {
    "created_at": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "id": "<string>",
    "is_system_role": true,
    "name": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "message": "<string>",
  "success": true
}

Authorizations

Authorization
string
header
required

Enter your JWT access token

Body

application/json
name
string
required
Required string length: 1 - 100
description
string | null
Maximum string length: 500

Response

Successful Response

data
RoleResponse · object
message
string | null
success
boolean
default:true