wxc_sdk.organizations package

Organizations A set of people in Webex. Organizations may manage other organizations or be managed themselves. This organizations resource can be accessed only by an admin.

Applications can delete an Organization only after they have been authorized by a user with the Full Administrator Role which may be a user in the customer org or a user in a managing partner organization to which the role has been granted. The authorizing admin must grant the spark-admin:organizations-write scope.

class wxc_sdk.organizations.Organization(*, id: str, displayName: str, created: datetime, xsiActionsEndpoint: str | None = None, xsiEventsEndpoint: str | None = None, xsiEventsChannelEndpoint: str | None = None, xsiDomain: str | None = None)[source]

Bases: ApiModel

org_id: str

A unique identifier for the organization.

display_name: str

Full name of the organization.

created: datetime

The date and time the organization was created.

xsi_actions_endpoint: str | None

The base path to xsi-actions.

xsi_events_endpoint: str | None

The base path to xsi-events.

xsi_events_channel_endpoint: str | None

The base path to xsi-events-channel.

xsi_domain: str | None

api- prepended to the bcBaseDomain value for the organization.

class wxc_sdk.organizations.OrganizationApi(*, session: RestSession, base: str | None = None)[source]

Bases: ApiChild

list(calling_data: bool | None = None) list[Organization][source]

List all organizations visible by your account. The results will not be paginated.

Parameters:

calling_data (bool) – Include XSI endpoint values in the response (if applicable) for the organization. Default: false

Returns:

list of Organizations

details(org_id: str, calling_data: bool | None = None) Organization[source]

Get Organization Details

Shows details for an organization, by ID.

Parameters:
  • org_id (str) – The unique identifier for the organization.

  • calling_data (bool) – Include XSI endpoint values in the response (if applicable) for the organization. Default: false

Returns:

org details

Return type:

Organization

delete(org_id: str)[source]

Delete Organization

Deletes an organization, by ID. It may take up to 10 minutes for the organization to be deleted after the response is returned.

Parameters:

org_id (str) – The unique identifier for the organization.

base = 'organizations'