----------------------------------------------------------------------------- -- | -- License : BSD-3-Clause -- Maintainer : Oleg Grenrus -- -- The GitHub Enterprise orgs API as described on . module GitHub.Endpoints.Enterprise.Organizations ( createOrganizationR, renameOrganizationR, module GitHub.Data, ) where import GitHub.Data import GitHub.Data.Enterprise import GitHub.Internal.Prelude import Prelude () -- | Create an organization. -- See createOrganizationR :: CreateOrganization -> Request 'RW SimpleOrganization createOrganizationR = command Post ["admin", "organizations"] . encode -- | Rename an organization. -- See renameOrganizationR :: Name Organization -> RenameOrganization -> Request 'RW RenameOrganizationResponse renameOrganizationR org = command Patch ["admin", "organizations", toPathPart org] . encode