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

137 service instance profile missing from putaa #143

Merged
merged 3 commits into from
Nov 18, 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
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
Loading