Skip to content

GroupCallCenterAddAgentListRequest

Bases: OCIRequest

Add agent(s) to a call center. The response is either SuccessResponse or ErrorResponse. If the skill level is not present for skill based premium call centers, the users will be set to skill level 1.

The following element is only used in AS data mode and ignored in XS data mode:
  agentSkillList

Attributes:

service_user_id (str):

agent_user_id (Optional[List[str]]):

agent_skill_list (Optional[List[CallCenterSkillAgentList]]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class GroupCallCenterAddAgentListRequest(OCIRequest):
    """Add agent(s) to a call center.
        The response is either SuccessResponse or ErrorResponse.
        If the skill level is not present for skill based premium call centers, the users will be set to skill level 1.

        The following element is only used in AS data mode and ignored in XS data mode:
          agentSkillList

    Attributes:

        service_user_id (str):

        agent_user_id (Optional[List[str]]):

        agent_skill_list (Optional[List[CallCenterSkillAgentList]]):

    """

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

    agent_user_id: Optional[List[str]] = field(
        default=None, metadata={"alias": "agentUserId"}
    )

    agent_skill_list: Optional[List[CallCenterSkillAgentList]] = field(
        default=None, metadata={"alias": "agentSkillList"}
    )

Responses

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

Bases: OCIResponse

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

Example Usage

from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import GroupCallCenterAddAgentListRequest

client = Client()

command = GroupCallCenterAddAgentListRequest(
    service_user_id=...,
    agent_user_id=...,
    agent_skill_list=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("GroupCallCenterAddAgentListRequest",
    service_user_id=...,
    agent_user_id=...,
    agent_skill_list=...,
)

print(response)