How to add member as an admin to an organization using REST API call

Hi ,

I tried using “https://developer.atlassian.com/cloud/trello/rest/api-group-organizations/#api-organizations-id-members-idmember-put” REST API call to add a member as an admin to an organization. But I am getting this error: “Cannot add admins to a workspace using a non-privileged token”. The token I am using has admin privileges. I am able to add a member as a normal member to an organization with the token. Can you please let me know what the issue might be?

Thanks,
Swetha Shetty

Can someone please help me with this.