Update an organization

PATCH {{baseUrl}}/orgs/:org

Parameter Deprecation Notice: GitHub will replace and discontinue members_allowed_repository_creation_type in favor of more granular permissions. The new input parameters are members_can_create_public_repositories, members_can_create_private_repositories for all organizations and members_can_create_internal_repositories for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the blog post.

Enables an authenticated organization owner with the admin:org scope to update the organization's profile and member privileges.

Request Body

{"billing_email"=>"<string>", "company"=>"<string>", "email"=>"<string>", "twitter_username"=>"<string>", "location"=>"<string>", "name"=>"<string>", "description"=>"<string>", "has_organization_projects"=>"<boolean>", "has_repository_projects"=>"<boolean>", "default_repository_permission"=>"read", "members_can_create_repositories"=>true, "members_can_create_internal_repositories"=>"<boolean>", "members_can_create_private_repositories"=>"<boolean>", "members_can_create_public_repositories"=>"<boolean>", "members_allowed_repository_creation_type"=>"<string>", "blog"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&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;twitter_username&quot;:&quot;github&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;type&quot;:&quot;Organization&quot;,&quot;total_private_repos&quot;:100,&quot;owned_private_repos&quot;:100,&quot;private_gists&quot;:81,&quot;disk_usage&quot;:10000,&quot;collaborators&quot;:8,&quot;billing_email&quot;:&quot;mona@github.com&quot;,&quot;plan&quot;:{&quot;name&quot;:&quot;Medium&quot;,&quot;space&quot;:400,&quot;private_repos&quot;:20},&quot;default_repository_permission&quot;:&quot;read&quot;,&quot;members_can_create_repositories&quot;:true,&quot;two_factor_requirement_enabled&quot;:true,&quot;members_allowed_repository_creation_type&quot;:&quot;all&quot;,&quot;members_can_create_public_repositories&quot;:false,&quot;members_can_create_private_repositories&quot;:false,&quot;members_can_create_internal_repositories&quot;:false,&quot;updated_at&quot;:&quot;2014-03-03T18:58:10Z&quot;}