assignRole( ) api fails with error server responded with - {\"message\":\"\",\"details\":{}} (401)"]"

It is on the page where the admin used to assign the role (maybe a private page with the custom interface?)