Skip to content

CallCenterAgentAvailability

Bases: OCIRequest

Specifies an agent's login state (availability) for a particular Call Center.

Attributes:

service_user_id (str):

available (bool):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class CallCenterAgentAvailability(OCIRequest):
    """Specifies an agent's login state (availability) for a particular Call Center.

    Attributes:

        service_user_id (str):

        available (bool):

    """

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

    available: bool = field(metadata={"alias": "available"})

Responses

:: mercury_ocip.commands.base_command.ErrorResponse

:: mercury_ocip.commands.base_command.SuccessResponse

Example Usage

from mercury_ocip.client import Client
from mercury_ocip.commands import CallCenterAgentAvailability

client = Client()

command = CallCenterAgentAvailability(
    service_user_id=...,
    available=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("CallCenterAgentAvailability",
    service_user_id=...,
    available=...,
)

print(response)