Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added service_providers_trunk_group_call_capacity method #37

Merged
merged 3 commits into from
Jun 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions odins_spear/methods/put.py
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,28 @@ def user_services(self, user_id: str, services: list =None, service_packs: list
#THIRD PARTY EMERGENCY CALLING
#TIME ZONES
#TRUNK GROUPS

def service_providers_trunk_group_call_capacity(self, service_provider_id: str, max_active_calls: int, bursting_max_active_calls: int):
"""
Updates the max active calls and the bursting max active calls for the given service provider.

Args:
service_provider_id (str): service provider id for which the max active calls needs to be updated
max_active_calls (int): the updated number of max active calls
bursting_max_active_calls (int): the updated number of bursting max active calls

"""

endpoint = "/service-providers/trunk-groups/call-capacity"

data = {
"serviceProviderId": service_provider_id,
"maxActiveCalls": max_active_calls,
"burstingMaxActiveCalls": bursting_max_active_calls
}

return self.requester.put(endpoint, data=data)

#TWO STAGE DIALING
#USERS

Expand Down