Skip to content

Commit 1b6e4c8

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parent 6cdc2ed commit 1b6e4c8

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

content/v3/orgs/teams.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,27 @@ Name | Type | Description
5151
`name`|`string` | **Required**. The name of the team.
5252
`description`|`string` | The description of the team.
5353
`repo_names`|`array` of `strings` | The full name (e.g., "organization-name/repository-name") of repositories to add the team to.
54-
`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.**
54+
`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/>{% if page.version != 'dotcom' and page.version == 2.4 %}**This parameter requires a custom media type to be specified. Please see more in the alert below.**{% endif %}
5555
`permission`|`string` | **Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of:<br/> * `pull` - team members can pull, but not push to or administer newly-added repositories.<br/> * `push` - team members can pull and push, but not administer newly-added repositories.<br/> * `admin` - team members can pull, push and administer newly-added repositories.<br/>Default: `pull`
56+
57+
{% if page.version != 'dotcom' and page.version == 2.4 %}
58+
59+
{{#tip}}
60+
61+
We're currently offering a preview period allowing applications to opt in to the Organization Permissions API. Please see the [blog post](/changes/2015-06-24-api-enhancements-for-working-with-organization-permissions/) for full details.
62+
63+
To access the API during the preview period, you must provide a custom [media type](/v3/media) in the `Accept` header:
64+
65+
```
66+
application/vnd.github.ironman-preview+json
67+
```
68+
69+
**Warning:** If you specify the `privacy` attribute on an organization that hasn't had [improved organization permissions](https://github.com/blog/2020-improved-organization-permissions) enabled yet, you will get a `422` error response.
70+
71+
{{/tip}}
72+
73+
{% endif %}
74+
5675
#### Example
5776

5877
<%= json \
@@ -107,9 +126,10 @@ Name | Type | Description
107126
-----|------|--------------
108127
`name`|`string` | **Required**. The name of the team.
109128
`description`|`string` | The description of the team.
110-
`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/>{% if page.version == 2.4 %}**This parameter requires a custom media type to be specified. Please see more in the alert below.**{% endif %}
129+
`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/>{% if page.version != 'dotcom' and page.version == 2.4 %}**This parameter requires a custom media type to be specified. Please see more in the alert below.**{% endif %}
111130
`permission`|`string` | **Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of:<br/> * `pull` - team members can pull, but not push to or administer newly-added repositories.<br/> * `push` - team members can pull and push, but not administer newly-added repositories.<br/> * `admin` - team members can pull, push and administer newly-added repositories.<br/>Default: `pull`
112131

132+
{% if page.version != 'dotcom' and page.version == 2.4 %}
113133

114134
{{#tip}}
115135

@@ -125,6 +145,8 @@ application/vnd.github.ironman-preview+json
125145

126146
{{/tip}}
127147

148+
{% endif %}
149+
128150
#### Example
129151

130152
<%= json \

0 commit comments

Comments
 (0)