How to assign a client role to a service account user

Hi ,

I am using keyclaok 22.0.1. I am trying to add the client level roles to Client’s service account from API.

But i could get any solution for that.

I tried the below but it not working. throwing user not found error.

https://contoso:8443/admin/realms/AlphaTest/users/service-account-di-studio/role-mappings/clients/realm-management/

thanks in advance,
Sriguruvel.