Skip to content

Commit

Permalink
137 service instance profile missing from putaa (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chopped4Life authored Nov 18, 2024
1 parent 61ec1fd commit f15f575
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions odins_spear/methods/put.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ def auto_attendants_status(self, auto_attendant_user_ids: list,

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



def auto_attendant(self, service_provider_id: str, group_id,
auto_attendant_user_id: str, updates: dict):
def auto_attendant(self, service_provider_id: str, group_id, auto_attendant_user_id: str, updates: dict):
"""Updates a single target Auto Attendant.
Note: Needs the service instance profile to use this method.
Expand All @@ -111,12 +108,15 @@ def auto_attendant(self, service_provider_id: str, group_id,

endpoint = "/groups/auto-attendants"

if 'serviceInstanceProfile' not in updates:
updates.setdefault('serviceInstanceProfile', {})

updates["serviceProviderId"] = service_provider_id
updates["groupId"] = group_id
updates["serviceUserId"] = auto_attendant_user_id

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


def auto_attendant_submenu(self, auto_attendant_user_id: str,
submenu_id: str, updates: dict):
Expand Down

0 comments on commit f15f575

Please sign in to comment.