You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 1, 2017. It is now read-only.
We're currently offering a preview period allowing applications to opt in to the Organization Permissions API. Please see the <a href="/changes/2015-06-24-api-enhancements-for-working-with-organization-permissions/">blog post</a> for full details.
Copy file name to clipboardExpand all lines: content/v3/orgs/teams.md
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,8 @@ Name | Type | Description
46
46
`privacy`|`string`| The level of privacy this team should have. Can be one of:<br/> *`secret` - only visible to organization owners and members of this team.<br/> *`closed` - visible to all members of this organization.<br/>Default:`secret`<br/>**This parameter requires a custom media type to be specified. Please see more in the alert below.**
47
47
`permission`|`string` |**Deprecated**. In the preview period described in the alert below, a team's`permission` attribute no longer dictates what permission it has on its repositories; it only dictates what permission the repositories in this request will be added with, and what permission a new repository will be added to the team with if none is specified by the user. Avoid confusion by specifying a`permission` when using the[Add team repository](/v3/orgs/teams/#add-team-repo) API instead.<br/><br/>The permission to grant the team. Can be one of:<br/> *`pull` - team members can pull, but not push to or administer these repositories.<br/> *`push` - team members can pull and push, but not administer these repositories.<br/> *`admin` - team members can pull, push and administer these repositories.<br/>Default:`pull`
48
48
49
+
{{#not-enterprise}}
50
+
49
51
<divclass="alert">
50
52
<p>
51
53
We're currently offering a preview period allowing applications to opt in to the Organization Permissions API. Please see the <a href="/changes/2015-06-24-api-enhancements-for-working-with-organization-permissions/">blog post</a> for full details.
@@ -61,6 +63,8 @@ Name | Type | Description
61
63
</p>
62
64
</div>
63
65
66
+
{{/not-enterprise}}
67
+
64
68
####Example
65
69
66
70
<%= json\
@@ -89,6 +93,8 @@ Name | Type | Description
89
93
`privacy`|`string`| The level of privacy this team should have. Can be one of:<br/> *`secret` - only visible to organization owners and members of this team.<br/> *`closed` - visible to all members of this organization.<br/>Default:`secret`<br/>**This parameter requires a custom media type to be specified. Please see more in the alert below.**
90
94
`permission`|`string` |**Deprecated**. In the preview period described in the alert below, a team's`permission` attribute no longer dictates what permission it has on its repositories; it only dictates what permission a new repository will be added to the team with if none is specified by the user. Avoid confusion by specifying a`permission` when using the[Add team repository](/v3/orgs/teams/#add-team-repo) API instead.<br/><br/>The permission to grant the team. Can be one of:<br/> *`pull` - team members can pull, but not push to or administer these repositories.<br/> *`push` - team members can pull and push, but not administer these repositories.<br/> *`admin` - team members can pull, push and administer these repositories. Default:`pull`
91
95
96
+
{{#not-enterprise}}
97
+
92
98
<divclass="alert">
93
99
<p>
94
100
We're currently offering a preview period allowing applications to opt in to the Organization Permissions API. Please see the <a href="/changes/2015-06-24-api-enhancements-for-working-with-organization-permissions/">blog post</a> for full details.
@@ -104,6 +110,8 @@ Name | Type | Description
104
110
</p>
105
111
</div>
106
112
113
+
{{/not-enterprise}}
114
+
107
115
####Example
108
116
109
117
<%= json\
@@ -145,6 +153,8 @@ Name | Type | Description
145
153
-----|------|--------------
146
154
`role`|`string`| Filters members returned by their role in the team. Can be one of:<br/> *`member` - normal members of the team.<br/> *`maintainer` - team maintainers.<br/> *`all` - all members of the team.<br/>Default:`all`<br/>**This parameter requires a custom media type to be specified. Please see more in the alert below.**
147
155
156
+
{{#not-enterprise}}
157
+
148
158
<divclass="alert">
149
159
<p>
150
160
We're currently offering a preview period allowing applications to opt in to the Organization Permissions API. Please see the <a href="/changes/2015-06-24-api-enhancements-for-working-with-organization-permissions/">blog post</a> for full details.
`role`|`string`| The role that this user should have in the team. Can be one of:<br/> *`member` - a normal member of the team.<br/> *`maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description.<br/>Default:`member`<br/>**This parameter requires a custom media type to be specified. Please see more in the alert below.**
320
332
333
+
{{#not-enterprise}}
334
+
321
335
<divclass="alert">
322
336
<p>
323
337
We're currently offering a preview period allowing applications to opt in to the Organization Permissions API. Please see the <a href="/changes/2015-06-24-api-enhancements-for-working-with-organization-permissions/">blog post</a> for full details.
@@ -333,6 +347,8 @@ Name | Type | Description
333
347
</p>
334
348
</div>
335
349
350
+
{{/not-enterprise}}
351
+
336
352
###Response if user's membership with team is now active
337
353
338
354
<%= headers 200 %>
@@ -399,6 +415,8 @@ you will be able to list all repositories for the team.
399
415
400
416
###Alternative response with extra repository information
401
417
418
+
{{#not-enterprise}}
419
+
402
420
<divclass="alert">
403
421
<p>
404
422
We're currently offering a preview period allowing applications to opt in to the Organization Permissions API. Please see the <a href="/changes/2015-06-24-api-enhancements-for-working-with-organization-permissions/">blog post</a> for full details.
@@ -416,6 +434,8 @@ permissions the team grants on it, by passing the following custom
We're currently offering a preview period allowing applications to opt in to the Organization Permissions API. Please see the <a href="/changes/2015-06-24-api-enhancements-for-working-with-organization-permissions/">blog post</a> for full details.
Copy file name to clipboardExpand all lines: content/v3/repos/collaborators.md
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,9 @@ collaborators list.
23
23
24
24
###Alternative response with extra repository information
25
25
26
+
27
+
{{#not-enterprise}}
28
+
26
29
<divclass="alert">
27
30
<p>
28
31
We're currently offering a preview period allowing applications to opt in to the Organization Permissions API. Please see the <a href="/changes/2015-06-24-api-enhancements-for-working-with-organization-permissions/">blog post</a> for full details.
We're currently offering a preview period allowing applications to opt in to the Organization Permissions API. Please see the <a href="/changes/2015-06-24-api-enhancements-for-working-with-organization-permissions/">blog post</a> for full details.