Set permissions through api

Hii There :wave::wave: ,
i want to give data bases access or table access to particular group through api. i tried api/permissions/graph to get graph structure but i am not able to parse it. i found a way in documentation "Do a batch update of Permissions by passing in a modified graph" so i need to modify the graph but i am not able to understand the structure of the graph .
for example when run a get query api/permissions/graph i am getting like this "" JSON Response {'revision': 2, 'groups': {'2': {'7': {'data': {'native': 'write', 'schemas': 'all'}, 'download': {'native': 'full', 'schemas': 'full'}, 'data-model': {'schemas': 'all'}, 'details': 'yes'}, '1': {'data': {'native': 'write', 'schemas': 'all'},"" .i think i clearly mentioned the topic
i hope i will get a response
Thank you

Hi @Rajesh_Yalla
Almost everything you can do in the Metabase interface is just API calls.
The best way to learn the API, is to just use Metabase while having your browser developer Network-tab open and looking at the request, and what data is being send/received.

ok that's great thank you but where can i found browser developer Network-tab

@Rajesh_Yalla That depends on your browser: https://developer.chrome.com/docs/devtools/network/

thank you @flamber