module GitHub.Endpoints.Enterprise.Organizations (
createOrganizationR,
renameOrganizationR,
module GitHub.Data,
) where
import GitHub.Data
import GitHub.Data.Enterprise
import GitHub.Internal.Prelude
import Prelude ()
createOrganizationR :: CreateOrganization -> Request 'RW SimpleOrganization
createOrganizationR =
command Post ["admin", "organizations"] . encode
renameOrganizationR :: Name Organization -> RenameOrganization -> Request 'RW RenameOrganizationResponse
renameOrganizationR org =
command Patch ["admin", "organizations", toPathPart org] . encode