Internal Update Role Approvers

patch/api/v2/internal/pendingapprovals/roleapprovers

Updates the approvers on in-flight pending approvals when role membership changes. Called by Pending Approval Service when users are added or removed from a role in UMS.

Request Body

roleId string required
The role ID whose users have changed
Min length: >= 1 characters
Example: 59cd72485007a239fb00282ed480da1f
Match pattern: ^[0-9a-f]{32}$
organizationId string required
The organization ID that owns the role
Min length: >= 1 characters
Example: 59cd72485007a239fb00282ed480da1f
Match pattern: ^[0-9a-f]{32}$
addedUserIds array[string]
User IDs that were added to the role
Example: ["59cd72485007a239fb00282ed480da1f","58cd72485007a239fb00282ed480da21"]
removedUserIds array[string]
User IDs that were removed from the role
Example: ["59cd72485007a239fb00282ed480da1f"]

200 Response

updated number required
Number of pending approvals updated

400 Response

name string
Error code
context object required
Properties that apply to a specific error name
error string required
Human-readable error message
requestId string required
Client request id