'How to update or create resource group tags using API in PowerShell?

How can we update or add new tags to the resource group using API. I have tried the below API in Postman with PUT method. But its removing the first two tags and adding new tags.

https://management.azure.com/subscriptions/xxxx-xxxx-xxxx/resourceGroups/xxxx-xxxx-xxxx?api-version=2021-04-01

Can any one help me out what's wrong with this API.

Thank you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source