wxc_sdk.workspace_settings.devices package

class wxc_sdk.workspace_settings.devices.WorkspaceDevicesApi(*, session: RestSession, base: str | None = None)[source]

Bases: ApiChild

list(workspace_id: str, org_id: str | None = None) Generator[TelephonyDevice, None, None][source]

Get all devices for a workspace. This requires a full or read-only administrator auth token with a scope of spark-admin:telephony_config_read.

Parameters:
  • workspace_id (str) – ID of the workspace for which to retrieve devices.

  • org_id (str) – Organization to which the workspace belongs.

documentation: https://developer.webex.com/docs/api/v1/webex-calling-organization-settings/get-workspace-devices

modify_hoteling(workspace_id: str, hoteling: Hoteling, org_id: str | None = None)[source]

Modify devices for a workspace. Modifying devices for a workspace requires a full administrator auth token with a scope of spark-admin:telephony_config_write.

Parameters:
  • workspace_id (str) – ID of the workspace for which to modify devices.

  • hoteling (Hoteling) – hoteling settings

  • org_id (str) – Organization to which the workspace belongs.

documentation: https://developer.webex.com/docs/api/v1/webex-calling-organization-settings/modify-workspace -devices

base = 'telephony/config/workspaces'