Skip to main content
PATCH
/
v1
/
console
/
roles
/
{role_id}
Update Role
curl --request PATCH \
  --url http://localhost:8000/v1/console/roles/{role_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "<string>",
  "name": "<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

Path Parameters

role_id
string
required

Body

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

Response

Successful Response

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