Set team permissions via API

Dear all,

I created a new team in an organization by API (POST /orgs/{org}/teams) and put a team member to it (PUT /teams/{id}/members/{username}). The team member is not allowed to access a team repo because the right “code access” is not set in the team settings:

Is it possible to set this by API?

Best regards,

Found that a fix is on the way: