Skip to content

Commit cbdeb70

Browse files
committed
boom
1 parent f87efd0 commit cbdeb70

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

v3/orgs/teams/index.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,24 @@ <h3 id="reponse">Reponse</h3>
250250
X-RateLimit-Limit: 5000
251251
X-RateLimit-Remaining: 4999</code></pre>
252252

253+
<p>If you attempt to add an organization to a team, you will get this:</p>
254+
255+
<pre class="headers"><code>Status: 422 Unprocessable Entity
256+
X-RateLimit-Limit: 5000
257+
X-RateLimit-Remaining: 4999</code></pre>
258+
259+
<pre class="highlight"><code class="language-javascript"><span class="p">{</span>
260+
<span class="s2">"message"</span><span class="o">:</span> <span class="s2">"Validation Failed"</span><span class="p">,</span>
261+
<span class="s2">"errors"</span><span class="o">:</span> <span class="p">[</span>
262+
<span class="p">{</span>
263+
<span class="s2">"code"</span><span class="o">:</span> <span class="s2">"org"</span><span class="p">,</span>
264+
<span class="s2">"field"</span><span class="o">:</span> <span class="s2">"user"</span><span class="p">,</span>
265+
<span class="s2">"resource"</span><span class="o">:</span> <span class="s2">"TeamMember"</span>
266+
<span class="p">}</span>
267+
<span class="p">]</span>
268+
<span class="p">}</span>
269+
</code></pre>
270+
253271
<h2 id="remove-team-member">Remove team member</h2>
254272

255273
<p>In order to remove a user from a team, the authenticated user must have
@@ -341,6 +359,25 @@ <h3 id="reponse-2">Reponse</h3>
341359
X-RateLimit-Limit: 5000
342360
X-RateLimit-Remaining: 4999</code></pre>
343361

362+
<p>If you attempt to add a repo to a team that is not owned by the
363+
organization, you get:</p>
364+
365+
<pre class="headers"><code>Status: 422 Unprocessable Entity
366+
X-RateLimit-Limit: 5000
367+
X-RateLimit-Remaining: 4999</code></pre>
368+
369+
<pre class="highlight"><code class="language-javascript"><span class="p">{</span>
370+
<span class="s2">"message"</span><span class="o">:</span> <span class="s2">"Validation Failed"</span><span class="p">,</span>
371+
<span class="s2">"errors"</span><span class="o">:</span> <span class="p">[</span>
372+
<span class="p">{</span>
373+
<span class="s2">"code"</span><span class="o">:</span> <span class="s2">"not_owned"</span><span class="p">,</span>
374+
<span class="s2">"field"</span><span class="o">:</span> <span class="s2">"repository"</span><span class="p">,</span>
375+
<span class="s2">"resource"</span><span class="o">:</span> <span class="s2">"TeamMember"</span>
376+
<span class="p">}</span>
377+
<span class="p">]</span>
378+
<span class="p">}</span>
379+
</code></pre>
380+
344381
<h2 id="remove-team-repo">Remove team repo</h2>
345382

346383
<p>In order to add a repo to a team, the authenticated user must be an

0 commit comments

Comments
 (0)