Skip to main content

Add permissions to a role without removing existing ones

POST 

/roles/:roleId/permissions

Adds one or more permissions to the role identified by roleId, leaving any existing permissions intact. Use this when you want to expand a role's permission set without affecting what it already has; to simultaneously add and remove permissions in one call use PATCH /roles/{roleId}/permissions/bulk. Requires the tenant-id header (returns 400 if absent or blank). The request body must include a permissionIds array of permission ID strings; obtain valid permission IDs from the permissions list endpoints. Returns 200 with the complete, updated list of all permissions now assigned to the role — not just the newly added ones. Note: if the role does not exist, the current implementation returns 500 rather than 404 (tracked in CP-36405).

Request​

Responses​

Permissions added successfully