I'm trying to set branch restrictions via the API for a project owned by a team that I'm an admin of.
From the website I can view and set branch restrictions but if I try to get a list of them view the API is returns 403 Forbidden.
Additionally, if this can be solved, is it possible to set the default branch via the api?