Update Role Permissions API
Welcome to the documentation for the Update Role Permissions API. This API updates a role's permission.
Base URL
{baseURL}/v1/accounts/:id/settings/roles/:roleId/permissions | PATCH
Request Payload
Field | Type | Source | Required | Description |
---|---|---|---|---|
permissions | array | body | ✅ Yes | Array of Role ID |
Sample Request
curl -X PATCH {baseURL}/v1/accounts/:id/settings/roles/:roleId/permissions \
-H 'Content-Type: application/json' \
-d '{
"permissions": [
"5f8d0a8b0b7e5d1f1f2a3b4c"
]
}'
Sample 400 Response
{
"message": "Role already exist for this account",
"success": false,
"errors": {}
}