123456789_123456789_123456789_123456789_123456789_

Module: Octokit::EnterpriseAdminClient::Orgs

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/octokit/enterprise_admin_client/orgs.rb

Overview

Methods for the Enterprise Orgs API

Instance Method Summary

Instance Method Details

#create_organization(login, admin, options = {}) ⇒ nil

Create a new organization on the instance.

Examples:

@admin_client.create_organization('SuchAGreatOrg', 'gjtorikian')

Parameters:

  • login (String)

    The organization's username.

  • admin (String)

    The login of the user who will manage this organization.

  • options (Hash) (defaults to: {})

    A set of options.

Options Hash (options):

  • :profile_name (String)

    The organization's display name.

See Also:

[ GitHub ]

  
# File 'lib/octokit/enterprise_admin_client/orgs.rb', line 19

def create_organization(, admin, options = {})
  options[:] = 
  options[:admin] = admin
  post 'admin/organizations', options
end