Skip to content
Browse files

document the validation errors from adding teams

  • Loading branch information...
1 parent 9ecf01e commit 357b3bd3d4f54ad75ebc4fbd0c9b90ab95a0115d @technoweenie technoweenie committed Oct 28, 2011
Showing with 23 additions and 0 deletions.
  1. +23 −0 content/v3/orgs/teams.md
View
23 content/v3/orgs/teams.md
@@ -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

0 comments on commit 357b3bd

Please sign in to comment.
Something went wrong with that request. Please try again.