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

Commitcbdeb70

Browse files
committed
boom
1 parentf87efd0 commitcbdeb70

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+
<preclass="headers"><code>Status: 422 Unprocessable Entity
256+
X-RateLimit-Limit: 5000
257+
X-RateLimit-Remaining: 4999</code></pre>
258+
259+
<preclass="highlight"><codeclass="language-javascript"><spanclass="p">{</span>
260+
<spanclass="s2">"message"</span><spanclass="o">:</span><spanclass="s2">"Validation Failed"</span><spanclass="p">,</span>
261+
<spanclass="s2">"errors"</span><spanclass="o">:</span><spanclass="p">[</span>
262+
<spanclass="p">{</span>
263+
<spanclass="s2">"code"</span><spanclass="o">:</span><spanclass="s2">"org"</span><spanclass="p">,</span>
264+
<spanclass="s2">"field"</span><spanclass="o">:</span><spanclass="s2">"user"</span><spanclass="p">,</span>
265+
<spanclass="s2">"resource"</span><spanclass="o">:</span><spanclass="s2">"TeamMember"</span>
266+
<spanclass="p">}</span>
267+
<spanclass="p">]</span>
268+
<spanclass="p">}</span>
269+
</code></pre>
270+
253271
<h2id="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+
<preclass="headers"><code>Status: 422 Unprocessable Entity
366+
X-RateLimit-Limit: 5000
367+
X-RateLimit-Remaining: 4999</code></pre>
368+
369+
<preclass="highlight"><codeclass="language-javascript"><spanclass="p">{</span>
370+
<spanclass="s2">"message"</span><spanclass="o">:</span><spanclass="s2">"Validation Failed"</span><spanclass="p">,</span>
371+
<spanclass="s2">"errors"</span><spanclass="o">:</span><spanclass="p">[</span>
372+
<spanclass="p">{</span>
373+
<spanclass="s2">"code"</span><spanclass="o">:</span><spanclass="s2">"not_owned"</span><spanclass="p">,</span>
374+
<spanclass="s2">"field"</span><spanclass="o">:</span><spanclass="s2">"repository"</span><spanclass="p">,</span>
375+
<spanclass="s2">"resource"</span><spanclass="o">:</span><spanclass="s2">"TeamMember"</span>
376+
<spanclass="p">}</span>
377+
<spanclass="p">]</span>
378+
<spanclass="p">}</span>
379+
</code></pre>
380+
344381
<h2id="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)

[8]ページ先頭

©2009-2025 Movatter.jp