EnterpriseCallCenterAgentThresholdProfileAddAgentListRequest
Bases: OCIRequest
Add agent(s) to a Agent Threshold Profile. When an agent is assigned (added) to a profile, it is automatically unassigned (deleted) from the previous profile it was assigned to. The response is either SuccessResponse or ErrorResponse.
Attributes:
service_provider_id (str):
profile_name (str):
agent_user_id (List[str]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class EnterpriseCallCenterAgentThresholdProfileAddAgentListRequest(OCIRequest):
"""Add agent(s) to a Agent Threshold Profile.
When an agent is assigned (added) to a profile, it is automatically unassigned (deleted) from the previous profile it was assigned to.
The response is either SuccessResponse or ErrorResponse.
Attributes:
service_provider_id (str):
profile_name (str):
agent_user_id (List[str]):
"""
service_provider_id: str = field(metadata={"alias": "serviceProviderId"})
profile_name: str = field(metadata={"alias": "profileName"})
agent_user_id: List[str] = field(metadata={"alias": "agentUserId"})
|
Responses
Bases: OCIResponseSource code in src/mercury_ocip/commands/base_command.py
| class SuccessResponse(OCIResponse):
pass
|
Bases: OCIResponseSource 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 EnterpriseCallCenterAgentThresholdProfileAddAgentListRequest
client = Client()
command = EnterpriseCallCenterAgentThresholdProfileAddAgentListRequest(
service_provider_id=...,
profile_name=...,
agent_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("EnterpriseCallCenterAgentThresholdProfileAddAgentListRequest",
service_provider_id=...,
profile_name=...,
agent_user_id=...,
)
print(response)