Skip to content

Commit adf3449

Browse files
committed
Update team docs to clarify oauth scope
1 parent 17a936a commit adf3449

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

content/v3/orgs/teams.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ title: Organization Teams | GitHub API
55
# Org Teams API
66

77
All 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.
140140
If 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
199200
organization, you get:
200201

201202
<%= headers 422 %>
202-
<%=
203+
<%=
203204
json :message => "Validation Failed",
204205
:errors => [{
205206
:code => "not_owned",

0 commit comments

Comments
 (0)