Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit357b3bd

Browse files
committed
document the validation errors from adding teams
1 parent9ecf01e commit357b3bd

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

‎content/v3/orgs/teams.md‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,17 @@ is associated with.
137137

138138
<%= headers 204 %>
139139

140+
If you attempt to add an organization to a team, you will get this:
141+
142+
<%= headers 422 %>
143+
<%=
144+
json:message => "Validation Failed",
145+
:errors =>[{
146+
:code => "org",
147+
:field =>:user,
148+
:resource =>:TeamMember}]
149+
%>
150+
140151
##Remove team member
141152

142153
In order to remove a user from a team, the authenticated user must have
@@ -184,6 +195,18 @@ organization.
184195

185196
<%= headers 204 %>
186197

198+
If you attempt to add a repo to a team that is not owned by the
199+
organization, you get:
200+
201+
<%= headers 422 %>
202+
<%=
203+
json:message => "Validation Failed",
204+
:errors =>[{
205+
:code => "not_owned",
206+
:field =>:repository,
207+
:resource =>:TeamMember}]
208+
%>
209+
187210
##Remove team repo
188211

189212
In order to add a repo to a team, the authenticated user must be an

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp