Skip to content

UserCallCenterGetAgentSupervisorListRequest

Bases: OCIRequest

Get a list of supervisors for an agent on a given call center. The response is either a UserCallCenterGetAgentSupervisorListResponse or an ErrorResponse.

Attributes:

agent_user_id (str):

service_user_id (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class UserCallCenterGetAgentSupervisorListRequest(OCIRequest):
    """Get a list of supervisors for an agent on a given call center.
        The response is either a UserCallCenterGetAgentSupervisorListResponse
        or an ErrorResponse.

    Attributes:

        agent_user_id (str):

        service_user_id (str):

    """

    agent_user_id: str = field(metadata={"alias": "agentUserId"})

    service_user_id: str = field(metadata={"alias": "serviceUserId"})

Responses

Bases: OCIDataResponse

Response to the UserCallCenterGetAgentSupervisorListRequest. Contains a table with column headings: "User Id", "Last Name", "First Name", "Hiragana Last Name", "Hiragana First Name", "Phone Number", "Extension", "Department", "Email Address", "IMP Id", "Location Code".

Attributes:

supervisor_table (OCITable):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class UserCallCenterGetAgentSupervisorListResponse(OCIDataResponse):
    """Response to the UserCallCenterGetAgentSupervisorListRequest.
        Contains a table with column headings: \"User Id\", \"Last Name\",
        \"First Name\", \"Hiragana Last Name\", \"Hiragana First Name\",
        \"Phone Number\", \"Extension\", \"Department\", \"Email Address\", \"IMP Id\",
                \"Location Code\".

    Attributes:

        supervisor_table (OCITable):

    """

    supervisor_table: OCITable = field(metadata={"alias": "supervisorTable"})

Bases: OCIResponse

Source code in src/mercury_ocip/commands/base_command.py
class ErrorResponse(OCIResponse):
    errorCode: Optional[int] = None
    summary: str
    summaryEnglish: str
    detail: Optional[str] = None

Example Usage

from mercury_ocip.client import Client
from mercury_ocip.commands import UserCallCenterGetAgentSupervisorListRequest

client = Client()

command = UserCallCenterGetAgentSupervisorListRequest(
    agent_user_id=...,
    service_user_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("UserCallCenterGetAgentSupervisorListRequest",
    agent_user_id=...,
    service_user_id=...,
)

print(response)