Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

document the validation errors from adding teams

  • Loading branch information...
commit 357b3bd3d4f54ad75ebc4fbd0c9b90ab95a0115d 1 parent 9ecf01e
risk danger olson technoweenie authored
Showing with 23 additions and 0 deletions.
  1. +23 −0 content/v3/orgs/teams.md
23 content/v3/orgs/teams.md
View
@@ -137,6 +137,17 @@ is associated with.
<%= headers 204 %>
+If you attempt to add an organization to a team, you will get this:
+
+<%= headers 422 %>
+<%=
+ json :message => "Validation Failed",
+ :errors => [{
+ :code => "org",
+ :field => :user,
+ :resource => :TeamMember}]
+%>
+
## Remove team member
In order to remove a user from a team, the authenticated user must have
@@ -184,6 +195,18 @@ organization.
<%= headers 204 %>
+If you attempt to add a repo to a team that is not owned by the
+organization, you get:
+
+<%= headers 422 %>
+<%=
+ json :message => "Validation Failed",
+ :errors => [{
+ :code => "not_owned",
+ :field => :repository,
+ :resource => :TeamMember}]
+%>
+
## Remove team repo
In order to add a repo to a team, the authenticated user must be an
Please sign in to comment.
Something went wrong with that request. Please try again.