# Set team permissions via API

**URL:** <https://forum.gitea.com/t/set-team-permissions-via-api/665>\
**Category:** API/SDK/Tea/HelmChart/Terraform\
**Created:** [October 29, 2018, 7:50am UTC](https://forum.gitea.com/t/set-team-permissions-via-api/665 "2018-10-29T07:50:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eskorte](https://avatars.discourse-cdn.com/v4/letter/e/dfb087/32.png) [@eskorte](https://forum.gitea.com/u/eskorte)\
**Post date:** [October 29, 2018, 7:50am UTC](https://forum.gitea.com/t/set-team-permissions-via-api/665/1 "2018-10-29T07:50:11Z")

</div>

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:

 ![gitea-teams](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/1X/77069243473de405f70809081fcbb324e83c7b16.png)

Is it possible to set this by API?

Best regards,  
Sebastian

---

<div class="post-metadata">

**Author:** ![eskorte](https://avatars.discourse-cdn.com/v4/letter/e/dfb087/32.png) [@eskorte](https://forum.gitea.com/u/eskorte)\
**Post date:** [October 29, 2018, 11:04am UTC](https://forum.gitea.com/t/set-team-permissions-via-api/665/2 "2018-10-29T11:04:39Z")

</div>

Found that a fix is on the way:

> <https://github.com/go-gitea/gitea/pull/5188>
