Skip to content

GroupHuntGroupModifyInstanceWeightedCallDistributionRequest

Bases: OCIRequest

Request to modify the weighted call distribution of a Hunt Group instance. The response is either SuccessResponse or ErrorResponse. NOTE: Prior to release 14, any agents who were not in the list kept their existing weight setting. In release 14, any agents who are not in the list will have their weight set to 0.

Attributes:

service_user_id (str):

agent_weight (Optional[List[HuntAgentWeight]]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class GroupHuntGroupModifyInstanceWeightedCallDistributionRequest(OCIRequest):
    """Request to modify the weighted call distribution of a Hunt Group instance.
        The response is either SuccessResponse or ErrorResponse.
        NOTE: Prior to release 14, any agents who were not in the list kept their
        existing weight setting. In release 14, any agents who are not in the list
        will have their weight set to 0.

    Attributes:

        service_user_id (str):

        agent_weight (Optional[List[HuntAgentWeight]]):

    """

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

    agent_weight: Optional[List[HuntAgentWeight]] = field(
        default=None, metadata={"alias": "agentWeight"}
    )

Responses

Bases: OCIResponse

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

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 GroupHuntGroupModifyInstanceWeightedCallDistributionRequest

client = Client()

command = GroupHuntGroupModifyInstanceWeightedCallDistributionRequest(
    service_user_id=...,
    agent_weight=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("GroupHuntGroupModifyInstanceWeightedCallDistributionRequest",
    service_user_id=...,
    agent_weight=...,
)

print(response)