module Octokit::EnterpriseAdminClient::Orgs
Methods for the Enterprise Orgs
API
Public Instance Methods
create_organization(login, admin, options = {})
click to toggle source
Create a new organization on the instance.
@param login [String] The organization's username. @param admin [String] The login of the user who will manage this organization. @param options [Hash] A set of options. @option options [String] :profile_name The organization's display name. @return [nil] @see developer.github.com/v3/enterprise-admin/orgs/#create-an-organization @example
@admin_client.create_organization('SuchAGreatOrg', 'gjtorikian')
# File lib/octokit/enterprise_admin_client/orgs.rb, line 19 def create_organization(login, admin, options = {}) options[:login] = login options[:admin] = admin post "admin/organizations", options end