Operations for the Organizations API.
Summary
Functions
Create an Organization
Delete an Organization
Get Audit Log Configuration
Get an Organization
Get an Organization by External ID
List authorized applications
List Organizations
Update an Organization
Functions
@spec create_organization(WorkOS.Client.t(), map(), keyword()) :: {:ok, WorkOS.Organization.t()} | {:error, WorkOS.Error.error()}
Create an Organization
Creates a new organization in the current environment.
Parameters
params— request body mapopts— per-request options (seeWorkOS.Client.request/5)
@spec delete_organization(WorkOS.Client.t(), String.t(), keyword()) :: {:ok, term()} | {:error, WorkOS.Error.error()}
Delete an Organization
Permanently deletes an organization in the current environment. It cannot be undone.
Parameters
id— Unique identifier of the Organization.opts— per-request options (seeWorkOS.Client.request/5)
@spec get_audit_log_configuration(WorkOS.Client.t(), String.t(), keyword()) :: {:ok, WorkOS.AuditLogConfiguration.t()} | {:error, WorkOS.Error.error()}
Get Audit Log Configuration
Get the unified view of audit log trail and stream configuration for an organization.
Parameters
id— Unique identifier of the Organization.opts— per-request options (seeWorkOS.Client.request/5)
@spec get_organization(WorkOS.Client.t(), String.t(), keyword()) :: {:ok, WorkOS.Organization.t()} | {:error, WorkOS.Error.error()}
Get an Organization
Get the details of an existing organization.
Parameters
id— Unique identifier of the Organization.opts— per-request options (seeWorkOS.Client.request/5)
@spec get_organization_by_external_id(WorkOS.Client.t(), String.t(), keyword()) :: {:ok, WorkOS.Organization.t()} | {:error, WorkOS.Error.error()}
Get an Organization by External ID
Get the details of an existing organization by an external identifier.
Parameters
external_id— The external ID of the Organization.opts— per-request options (seeWorkOS.Client.request/5)
@spec list_authorized_applications(WorkOS.Client.t(), String.t(), map(), keyword()) :: {:ok, WorkOS.Page.t(WorkOS.OrganizationAuthorizedConnectApplicationListData.t())} | {:error, WorkOS.Error.error()}
List authorized applications
Get a list of all Connect applications that users in the organization have authorized.
Parameters
organization_id— The ID of the organization.params— query parameters::before,:after_,:limit,:orderopts— per-request options (seeWorkOS.Client.request/5)
@spec list_organizations(WorkOS.Client.t(), map(), keyword()) :: {:ok, WorkOS.Page.t(WorkOS.Organization.t())} | {:error, WorkOS.Error.error()}
List Organizations
Get a list of all of your existing organizations matching the criteria specified.
Parameters
params— query parameters::before,:after_,:limit,:order,:domains,:searchopts— per-request options (seeWorkOS.Client.request/5)
@spec update_organization(WorkOS.Client.t(), String.t(), map(), keyword()) :: {:ok, WorkOS.Organization.t()} | {:error, WorkOS.Error.error()}
Update an Organization
Updates an organization in the current environment.
Parameters
id— Unique identifier of the Organization.params— request body map. Deprecated::domains(seeWorkOS.UpdateOrganization).opts— per-request options (seeWorkOS.Client.request/5)