Skip to content

Commit

Permalink
Merge pull request #37 from Jordan-Prescott/eva-bulider_methods
Browse files Browse the repository at this point in the history
Added service_providers_trunk_group_call_capacity method
  • Loading branch information
Jordan-Prescott authored Jun 10, 2024
2 parents 0fff769 + 726fad1 commit 0898988
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions odins_spear/methods/put.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,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

0 comments on commit 0898988

Please sign in to comment.