File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ title: Organization Teams | GitHub API
55# Org Teams API
66
77All actions against teams require at a minimum an authenticated user who
8- is a member of the owner's team in the ` :org ` being managed. API calls
9- that require explicit permissions are noted .
8+ is a member of the owner's team in the ` :org ` being managed. Additionally,
9+ OAuth users require "user" [ scope ] ( /v3/oauth/#scopes ) .
1010
1111## List teams
1212
@@ -140,12 +140,13 @@ is associated with.
140140If you attempt to add an organization to a team, you will get this:
141141
142142<%= headers 422 %>
143- <%=
143+ <%=
144144 json : message => "Validation Failed",
145145 : errors => [ {
146146 : code => "org",
147147 : field => : user ,
148- : resource => : TeamMember }]
148+ : resource => : TeamMember
149+ }]
149150%>
150151
151152## Remove team member
@@ -199,7 +200,7 @@ If you attempt to add a repo to a team that is not owned by the
199200organization, you get:
200201
201202<%= headers 422 %>
202- <%=
203+ <%=
203204 json : message => "Validation Failed",
204205 : errors => [ {
205206 : code => "not_owned",
You can’t perform that action at this time.
0 commit comments