We have an application where there is no Add/Remove API to update the entitlements for an user. Instead we need to call update API and send the existing entitlements and new entitlement as an array to add new entitlements. Now I understand that we need 2 calls, one to retrieve the Roles and the 2nd one to pass the array.
The first API response is as below to get one specific user details. The response does not have any name for the result.