restapi to add userrole to a user account
Summary:
Is there a restapi to add a append userrole to an existing user account?
I used the below api as both patch and post in both cases I am getting 401 unauthorized and api documentation says if I have HR Specialist role I can able to update useraccount but unable to do.
https://{{URL}}/hcmRestApi/resources/11.13.18.05/userAccounts/{{GUID}}/child/userAccountRoles
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
24C
Code Snippet (add any code snippets that support your topic, if applicable):