GroupMusicOnHoldModifyInstanceRequest22
Bases: OCIRequest
Modify data for a group or department Music On Hold Instance. The response is either SuccessResponse or ErrorResponse.
Attributes:
service_provider_id (str):
group_id (str):
department (Optional[DepartmentKey]):
is_active_during_call_hold (Optional[bool]):
is_active_during_call_park (Optional[bool]):
is_active_during_busy_camp_on (Optional[bool]):
source (Optional[MusicOnHoldSourceModify22]):
use_alternate_source_for_internal_calls (Optional[bool]):
internal_source (Optional[MusicOnHoldSourceModify22]):
use_dynamic_moh_during_call_hold (Optional[bool]):
Source code in src/mercury_ocip/commands/commands.py
51719 51720 51721 51722 51723 51724 51725 51726 51727 51728 51729 51730 51731 51732 51733 51734 51735 51736 51737 51738 51739 51740 51741 51742 51743 51744 51745 51746 51747 51748 51749 51750 51751 51752 51753 51754 51755 51756 51757 51758 51759 51760 51761 51762 51763 51764 51765 51766 51767 51768 51769 51770 51771 51772 51773 51774 51775 51776 51777 51778 51779 51780 51781 51782 | |
Responses
Example Usage
from mercury_ocip.client import Client
from mercury_ocip.commands import GroupMusicOnHoldModifyInstanceRequest22
client = Client()
command = GroupMusicOnHoldModifyInstanceRequest22(
service_provider_id=...,
group_id=...,
department=...,
is_active_during_call_hold=...,
is_active_during_call_park=...,
is_active_during_busy_camp_on=...,
source=...,
use_alternate_source_for_internal_calls=...,
internal_source=...,
use_dynamic_moh_during_call_hold=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("GroupMusicOnHoldModifyInstanceRequest22",
service_provider_id=...,
group_id=...,
department=...,
is_active_during_call_hold=...,
is_active_during_call_park=...,
is_active_during_busy_camp_on=...,
source=...,
use_alternate_source_for_internal_calls=...,
internal_source=...,
use_dynamic_moh_during_call_hold=...,
)
print(response)