Create a team

POST {{baseUrl}}/orgs/:org/teams

To create a team, the authenticated user must be a member or owner of {org}. By default, organization members can create teams. Organization owners can limit team creation to organization owners. For more information, see [Setting team creation permissions](https://help.github.com/en/articles/setting-team-creation-permissions-in-your-organization).

When you create a new team, you automatically become a team maintainer without explicitly adding yourself to the optional array of maintainers. For more information, see [About teams](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/about-teams).

Request Body

{"name"=>"<string>", "description"=>"<string>", "maintainers"=>["<string>", "<string>"], "repo_names"=>["<string>", "<string>"], "privacy"=>"<string>", "permission"=>"pull", "parent_team_id"=>"<integer>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDQ6VGVhbTE=&quot;,&quot;url&quot;:&quot;https://api.github.com/teams/1&quot;,&quot;html_url&quot;:&quot;https://api.github.com/teams/justice-league&quot;,&quot;name&quot;:&quot;Justice League&quot;,&quot;slug&quot;:&quot;justice-league&quot;,&quot;description&quot;:&quot;A great team.&quot;,&quot;privacy&quot;:&quot;closed&quot;,&quot;permission&quot;:&quot;admin&quot;,&quot;members_url&quot;:&quot;https://api.github.com/teams/1/members{/member}&quot;,&quot;repositories_url&quot;:&quot;https://api.github.com/teams/1/repos&quot;,&quot;parent&quot;:null,&quot;members_count&quot;:3,&quot;repos_count&quot;:10,&quot;created_at&quot;:&quot;2017-07-14T16:53:42Z&quot;,&quot;updated_at&quot;:&quot;2017-08-17T12:37:15Z&quot;,&quot;organization&quot;:{&quot;login&quot;:&quot;github&quot;,&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDEyOk9yZ2FuaXphdGlvbjE=&quot;,&quot;url&quot;:&quot;https://api.github.com/orgs/github&quot;,&quot;repos_url&quot;:&quot;https://api.github.com/orgs/github/repos&quot;,&quot;events_url&quot;:&quot;https://api.github.com/orgs/github/events&quot;,&quot;hooks_url&quot;:&quot;https://api.github.com/orgs/github/hooks&quot;,&quot;issues_url&quot;:&quot;https://api.github.com/orgs/github/issues&quot;,&quot;members_url&quot;:&quot;https://api.github.com/orgs/github/members{/member}&quot;,&quot;public_members_url&quot;:&quot;https://api.github.com/orgs/github/public_members{/member}&quot;,&quot;avatar_url&quot;:&quot;https://github.com/images/error/octocat_happy.gif&quot;,&quot;description&quot;:&quot;A great organization&quot;,&quot;name&quot;:&quot;github&quot;,&quot;company&quot;:&quot;GitHub&quot;,&quot;blog&quot;:&quot;https://github.com/blog&quot;,&quot;location&quot;:&quot;San Francisco&quot;,&quot;email&quot;:&quot;octocat@github.com&quot;,&quot;is_verified&quot;:true,&quot;has_organization_projects&quot;:true,&quot;has_repository_projects&quot;:true,&quot;public_repos&quot;:2,&quot;public_gists&quot;:1,&quot;followers&quot;:20,&quot;following&quot;:0,&quot;html_url&quot;:&quot;https://github.com/octocat&quot;,&quot;created_at&quot;:&quot;2008-01-14T04:33:35Z&quot;,&quot;updated_at&quot;:&quot;2017-08-17T12:37:15Z&quot;,&quot;type&quot;:&quot;Organization&quot;}}