Docs Rizler

Roles

Update Role Permissions

PUThttps://app.rizzdial.com/api/roles/{id}/permissions
Update Role Permissions
curl --request PUT \
  --url https://app.rizzdial.com/api/roles/12/permissions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "permissions": [
    101,
    102
  ]
}'
{
  "message": "Role permissions updated successfully.",
  "success": true
}

Update Role Permissions#

Replaces the role’s permissions. Send permission ids from Get Role Permissions. An empty permissions array clears them. Requires assign-role-permission.

Authorizationstringheaderrequired

Bearer token in the format: Bearer {access_token}

idstringpathrequired

Numeric role id from List Roles. Base64 and encrypted ids also work

permissionsarraybody

Permission ids from Get Role Permissions

titlestringbody

Optional rename in the same request

curl --request PUT \
  --url https://app.rizzdial.com/api/roles/12/permissions \
  --header 'Authorization: Bearer {{bearer_token}}' \
  --header 'Content-Type: application/json' \
  --data '{"permissions":[101,102]}'
messagestring

Role permissions updated successfully.

You can instead send modules (module_id plus permissions or permission_ids). POST /api/roles/{id}/permissions is the same endpoint.