Adding new roles to a team using API

Hi All,
Grafana v9.3.4
I’m trying to create a team using api calls but unfortunately I can’t see how to give roles to a team eg. data source explorer. Screenshot from Grafana, with functionality which i’m looking for

I checked Team HTTP API | Grafana documentation and External Group Sync HTTP API | Grafana documentation but didn’t find what i need.

Do you know if it’s possible to add roles using api?

Best