Bitbucket cloud rest API


I’m working on some automation tasks for bitbucket repository generation. I am able to create the repository, populate it with source code and create required branches.

however, I’m struggling to find any useful documentation that suggests that it is possible to set user permissions on the repository. for example, a repo is created, I then want to say x users can have developer access.

Is this possible without going through the GUI?