Skip to main content
POST
/
admin
/
role
/
permissions
/
add
Permission Add To Role.
curl --request POST \
  --url https://api.example.com/admin/role/permissions/add \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "roleID": 123,
  "permissionIDs": [
    123
  ]
}
'
{
  "success": true,
  "data": "<unknown>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
roleID
integer<int32>
permissionIDs
integer<int32>[] | null

Response

Success

success
boolean
data
unknown