Odin's Spear
  • Welcome
  • What's New
  • Getting Started
    • Getting the Essentials
    • Create API Object
  • API Coverage
  • Docs
    • API Object
    • Standard Methods
      • Administrators
        • POST - Service Provider Admin
        • PUT - Service Provider Admin Policies
        • POST - Group Admin Polices Bulk
        • POST - Group Admin
      • Alternate Numbers
        • GET - User Alternate Numbers
      • Authentication
        • PUT - User Web Authentication Password
        • PUT - User Authentication Service
      • Auto Attendants
        • GET - Auto Attendants
        • POST - Auto Attendant
        • GET - Auto Attendant
        • GET - Auto Attendant User
        • POST - Auto Attendant Remove User
        • PUT - Auto Attendant
        • DELETE - Auto Attendant
        • GET - Auto Attendant Submenus
        • POST - Auto Attendant Submenu
        • GET - Auto Attendant Submenu Usage
        • PUT - Auto Attendant Submenu
        • PUT - Auto Attendant Status
        • DELETE - Auto Attendant Submenu
      • Call Centers
        • GET - Group Call Center
        • PUT - Group Call Center
        • GET - Group Call Centers
        • PUT - Group Call Center Agents
        • PUT - Group Call Center Agents Levels
        • GET - Group Call Center Bounced Calls
        • PUT - Group Call Center Bounced Call
        • PUT - Group Call Center DNIS Instance
        • GET - Group Call Center Forced Forwarding
        • PUT - Group Call Center Forced Forwarding
        • GET - Group Call Center Overflow
        • PUT - Group Call Center Overflow
        • GET - Group Call Center Stranded Calls
        • GET - Group Call Center Stranded Calls Unavailable
        • PUT - Group Call Center Status
        • PUT - Group Call Center Stranded Calls
        • PUT - Group Call Center Stranded Calls Unavailable
        • GET - User Call Center
        • PUT - User Call Center
        • PUT - User Call Center Agent Sign Out
        • PUT - User Call Center Agents Update
        • PUT - User Call Center Supervised Agents
      • Call Forwarding Always
        • GET - Bulk Call Forwarding Always
        • GET - User Call Forwarding Always
      • Call Forwarding Busy
        • GET - Bulk Call Forwarding Busy
        • GET - User Call Forwarding Busy
      • Call Forwarding No Answer
        • GET - Bulk User Call Forwarding No Answer
        • GET - User Call Forwarding No Answer
      • Call Forwarding Not Reachable
        • GET - Bulk User Call Forwarding Not Reachable
        • GET - User Call Forwarding Not Reachable
      • Call Forwarding Selective
        • GET - User Call Forwarding Selective
        • GET - User Call Forwarding Selective Criteria
        • GET - User Call Forwarding Selective Criterias
      • Call Pickup
        • GET - Call Pickup Group User
      • Call Processing Policies
        • PUT - User Call Processing Policy
      • Call Records
        • GET - User Stats
      • Devices
        • POST - Group Device
        • PUT - Group Devices
        • PUT - Group Device File
        • PUT - Group Device Tag
        • PUT - Group Device Type File
        • PUT - Group Device Tags Profile
        • PUT - Group Device Type Tag
        • PUT - Service Provider Device
        • PUT - Service Provider Device File
        • PUT - Service Provider Device Tag
        • PUT - Service Provider Device Type Tag
        • PUT - System Devices
        • PUT - System Device File
        • PUT - System Device Tag
      • DNs
        • GET - Group DNs
        • POST - Group DNs
        • DELETE - Group DNs
        • PUT - Group DNs Activate
        • POST - Group DNs Assign Bulk
        • GET - Group DN Details
        • GET - Group DN Search
        • POST - Group DNs Unassign Bulk
        • GET - Service Provider DNs
        • POST - Service Provider DNs
        • GET - Service Provider DN Search
        • DELETE - Service Provider DNs
        • GET - System DNs
        • GET - System DN Search
        • GET - System DN Summary
        • GET - System DN Utilisation
      • Do Not Disturb
        • GET - User Do Not Disturb
        • PUT - User Do Not Disturb
      • Emergency Zones
        • POST - Group Emergency Zones
        • PUT - Group Emergency Zones
      • Groups
        • GET - Group Information
        • GET - Service Provider Groups
      • Hunt Groups
        • GET - Group Hunt Groups
        • GET - Group Hunt Group
        • POST - Group Hunt Group
        • PUT - Group Hunt Group
        • DELETE - Group Hunt Group
        • GET - Group Hunt Groups Available Users
        • PUT - Group Hunt Groups Status
        • GET - Group Hunt Group User
        • PUT - Group Hunt Group Weighted Call Distribution
        • POST - Group Hunt Groups Remove User
      • Password Generate
        • GET - Password Generate
        • GET - Passwords Generate
        • GET - Passcode Generate
        • GET - Passcodes Generate
        • GET - SIP Password Generate
        • GET - SIP Passwords Generate
      • Registration
        • GET - User Registration
        • GET - Bulk User Registration
      • Reports
        • GET - User Report
      • Schedules
        • GET - Group Schedules
        • GET - Group Events
      • Service Providers
        • GET - Service Provider
        • GET - Service Providers
      • Services
        • GET - Group Services
        • GET - Group Services Assigned
        • GET - User-Services
        • PUT - User Services
        • GET - User Services Assigned
        • GET - User Service Settings
        • PUT - User Service Settings
      • Shared Call Appearance
        • POST - User Shared Call Appearance Endpoint
      • Trunk Groups
        • GET - Group Trunk Group
        • GET - Group Trunk Groups
        • GET - Group Trunk Groups Call Capacity
        • PUT - Group Trunk Groups Call Capacity
        • PUT - Group Trunk Group
        • POST - Group Trunk Group
        • GET - Service Provider Call Capacity Report
        • GET - Service Provider Trunk Group Call Capacity
        • PUT - Service Provider Trunk Group Call Capacity
      • User
        • GET - User By ID
        • GET - Users
        • POST - User
        • PUT - User
        • DELETE - User
        • PUT - User ID
        • PUT - Users Bulk
        • PUT - User Group ID Update
        • GET - User Login Info
        • GET - User Portal Passcode
        • PUT - User Portal Passcode
        • POST - User Reset
      • Voice Messaging
        • GET - Group Voice Messaging
        • GET - Group Voice Messaging Portal
        • GET - User Voice Messaging Advanced
        • GET - User Voice Messaging Bulk
        • GET - User Voice Messaging Greetings
        • GET - User Voice Messaging Message Details
        • GET - User Voice Messaging Message Download
        • GET - User Voice Messaging Messages
        • GET - User Voice Messaging User Distribution List
        • GET - User Voice Messaging User Distribution Lists
        • GET - User Voice Messaging Voice Portal
        • GET - User Voice Messaging
        • PUT - Group Voice Messaging
        • PUT - Group Voice Messaging Portal
        • PUT - User Voice Messaging Bulk
        • PUT - User Voice Messaging Greetings
        • PUT - User Voice Messaging Messages Read
        • PUT - User Voice Messaging Messages Unread
        • PUT - User Voice Messaging User Distribution List
        • PUT - User Voice Messaging Voice Portal
        • PUT - User Voice Messaging
        • DELETE - User Voice Messaging Messages
    • Advanced Features
      • Scripter
        • Find Alias
        • User Association
        • Group Audit
        • Move Numbers
        • Remove Numbers
        • Bulk Password Reset
        • Service Provider Trunking Capacity
        • Webex Builder
        • Locate Free Extension
        • User Registration
        • VM Auto Login
      • Reporter
        • Call Flow
          • Making Sense of The Call Flow
          • Graphviz
        • Group Users Call Statistics
        • User Registration Report
    • Utils
      • Config Manager
        • Template Configs
          • Auto Attendant
          • Call Center
          • Device
          • Group
          • Hunt Group
          • Service Provider
          • Trunk Group
          • User
      • Checkers
      • Constants
      • Formatters
      • Parsers
    • Logging
  • Powered By Odin's Spear
    • AA, CC, HG Audit
    • Bulk Build Group Admins
    • Bulk Build Service Provider Admins
    • Service Pack Audit
    • VM Bulk Passcode Set CSV
  • 14IP
    • Custom Logger
  • Development
  • Troubleshooting & FAQ
    • Frequently Asked Questions
    • Common Issues
      • Graphviz Troubleshooting
  • Change Log
  • Bugs and Issues
  • Contact
Powered by GitBook
On this page
  • Parameters
  • Returns
  • How To Use:
  • Example Data Returned (Formatted)

Was this helpful?

  1. Docs
  2. Standard Methods
  3. Services

PUT - User Service Settings

PreviousGET - User Service SettingsNextShared Call Appearance

Last updated 2 months ago

Was this helpful?

This method updates a Broadwork entity's service settings. This uses a dicitonary as an input to apply changes, the structure of this dictionary should mirror the API's expected format for updating service settings.

For more information and other examples please visit

Most broadworks User Service Settings have varying options and choices that can be made:

"Call Forwarding Busy": {"isActive": false, "forwardToPhoneNumber": 12314}
"Call Forwarding Selective": {"isActive": false,"playRingReminder": false,"criteria": []}

Here you can see the differences between two similar services. To update settings using this function you must follow this structure.

You can either follow the link above for examples, or see the exmaple responses below to copy and paste the format. Otherwise, you can also use the output of get.user_service_settings().

Parameters

  • user_id (str): User ID of the target Broadworks entity.

  • settings (dict): A dictionary containing the new settings to be applied.

Returns

  • Dict: A dictionary representing the updated service settings for the specified user.

How To Use:

# Enabling Call Forward Always to ext 1509
settings = {"Call Forwarding Always": {"isActive": false, "forwardToPhoneNumber": 1509}}

# Enabling Call Forward Not Reachable to 1509 after 20 rings
settings = {'Call Forwarding No Answer': {'isActive': True, 'numberOfRings': 20, 'forwardToPhoneNumber': 1509}}

my_api.services.put_user_service_settings(
    "userId@domain.com",
    settings
)

Example Data Returned (Formatted)

{
  "userId": "9871515000@odinapi.net",
  "Advice Of Charge": {
    "isActive": false,
    "aocType": "During Call"
  },
  "Alternate Numbers": {
    "distinctiveRing": true,
    "alternateEntries": [
      {
        "phoneNumber": null,
        "extension": null,
        "ringPattern": null,
        "alternateEntryId": 1
      },
      {
        "phoneNumber": null,
        "extension": null,
        "ringPattern": null,
        "alternateEntryId": 2
      },
      {
        "phoneNumber": null,
        "extension": null,
        "ringPattern": null,
        "alternateEntryId": 3
      },
      {
        "phoneNumber": null,
        "extension": null,
        "ringPattern": null,
        "alternateEntryId": 4
      },
      {
        "phoneNumber": null,
        "extension": null,
        "ringPattern": null,
        "alternateEntryId": 5
      },
      {
        "phoneNumber": null,
        "extension": null,
        "ringPattern": null,
        "alternateEntryId": 6
      },
      {
        "phoneNumber": null,
        "extension": null,
        "ringPattern": null,
        "alternateEntryId": 7
      },
      {
        "phoneNumber": null,
        "extension": null,
        "ringPattern": null,
        "alternateEntryId": 8
      },
      {
        "phoneNumber": null,
        "extension": null,
        "ringPattern": null,
        "alternateEntryId": 9
      },
      {
        "phoneNumber": null,
        "extension": null,
        "ringPattern": null,
        "alternateEntryId": 10
      }
    ]
  },
  "Anonymous Call Rejection": {
    "isActive": false
  },
  "Authentication": {
    "userName": 9871515000,
    "serviceProviderId": "ent.odin",
    "groupId": "grp.odin"
  },
  "Automatic Callback": {
    "isActive": false
  },
  "Automatic Hold/Retrieve": {
    "isActive": false,
    "recallTimerSeconds": 120
  },
  "Barge-in Exempt": {
    "isActive": true
  },
  "BroadWorks Anywhere": {
    "alertAllLocationsForClickToDialCalls": false,
    "alertAllLocationsForGroupPagingCalls": false,
    "phoneNumbers": []
  },
  "BroadWorks Mobility": {
    "isActive": false,
    "phonesToRing": "Fixed",
    "alertClickToDialCalls": false,
    "alertGroupPagingCalls": false,
    "enableDiversionInhibitor": false,
    "requireAnswerConfirmation": false,
    "broadworksCallControl": false,
    "useSettingLevel": "Group",
    "denyCallOriginations": false,
    "denyCallTerminations": false
  },
  "Busy Lamp Field": {
    "enableCallParkNotification": false,
    "users": []
  },
  "Call Forwarding Always": {
    "isActive": false,
    "forwardToPhoneNumber": 1234,
    "isRingSplashActive": false
  },
  "Call Forwarding Always Secondary": {
    "isActive": false,
    "isRingSplashActive": false
  },
  "Call Forwarding Busy": {
    "isActive": false
  },
  "Call Forwarding No Answer": {
    "isActive": false,
    "forwardToPhoneNumber": 12314,
    "numberOfRings": 2
  },
  "Call Forwarding Not Reachable": {
    "isActive": false
  },
  "Call Forwarding Selective": {
    "isActive": false,
    "playRingReminder": false,
    "criteria": []
  },
  "Call Notify": {
    "criteria": []
  },
  "Call Recording": {
    "recordingOption": "Never",
    "pauseResumeNotification": "None",
    "enableCallRecordingAnnouncement": false,
    "enableRecordCallRepeatWarningTone": false,
    "recordCallRepeatWarningToneTimerSeconds": 15,
    "enableVoiceMailRecording": false
  },
  "Call Transfer": {
    "isRecallActive": false,
    "recallNumberOfRings": 4,
    "useDiversionInhibitorForBlindTransfer": false,
    "useDiversionInhibitorForConsultativeCalls": false,
    "enableBusyCampOn": false,
    "busyCampOnSeconds": 120
  },
  "Call Waiting": {
    "isActive": true,
    "disableCallingLineIdDelivery": false
  },
  "Calling Line ID Blocking Override": {
    "isActive": false
  },
  "Calling Line ID Delivery Blocking": {
    "isActive": false
  },
  "Calling Name Delivery": {
    "isActiveForExternalCalls": true,
    "isActiveForInternalCalls": true
  },
  "Calling Name Retrieval": {
    "isActive": false
  },
  "Calling Number Delivery": {
    "isActiveForExternalCalls": true,
    "isActiveForInternalCalls": true
  },
  "Calling Party Category": {
    "category": "Ordinary"
  },
  "Charge Number": {
    "useChargeNumberForEnhancedTranslations": false,
    "sendChargeNumberToNetwork": true
  },
  "Classmark": [],
  "CommPilot Express": {
    "availableInOffice": {
      "busySetting": {
        "action": "Transfer To Voice Mail"
      },
      "noAnswerSetting": {
        "action": "Transfer To Voice Mail"
      }
    },
    "availableOutOfOffice": {
      "incomingCalls": {
        "action": "Transfer To Voice Mail"
      },
      "incomingCallNotify": {
        "sendEmail": "false"
      }
    },
    "busy": {
      "incomingCalls": {
        "sendCallsToVoiceMailExceptExcludedNumbers": "false"
      },
      "voiceMailNotify": {
        "sendEmail": "false"
      }
    },
    "unavailable": {
      "incomingCalls": {
        "sendCallsToVoiceMailExceptExcludedNumbers": "false"
      },
      "voiceMailGreeting": "No Answer"
    }
  },
  "Communication Barring User-Control": {
    "lockoutStatus": false,
    "profileTable": []
  },
  "Connected Line Identification Restriction": {
    "isActive": false
  },
  "Direct Route": {
    "outgoingDTGPolicy": "Direct Route DTG",
    "outgoingTrunkIdentityPolicy": "Direct Route Trunk Identity",
    "routes": []
  },
  "Directed Call Pickup with Barge-in": {
    "enableBargeInWarningTone": true,
    "enableAutomaticTargetSelection": false
  },
  "Do Not Disturb": {
    "isActive": false,
    "ringSplash": false
  },
  "Executive-Assistant": {
    "enableDivert": false,
    "executives": []
  },
  "External Calling Line ID Delivery": {
    "isActive": true
  },
  "External Custom Ringback": {
    "isActive": false,
    "useSettingLevel": "Service Provider"
  },
  "Fax Messaging": {
    "isActive": false,
    "aliases": []
  },
  "Group Night Forwarding": {
    "nightForwarding": "Use Group",
    "groupNightForwarding": "On"
  },
  "Hoteling Guest": {
    "isActive": false,
    "enableAssociationLimit": true,
    "associationLimitHours": 12
  },
  "Hoteling Host": {
    "isActive": false,
    "enforceAssociationLimit": true,
    "associationLimitHours": 24,
    "accessLevel": "Group"
  },
  "In-Call Service Activation": {
    "isActive": false
  },
  "Integrated IMP": {
    "isActive": false
  },
  "Intercept User": {
    "isActive": false,
    "announcementSelection": "Default",
    "inboundCallMode": "Intercept All",
    "alternateBlockingAnnouncement": false,
    "exemptInboundMobilityCalls": false,
    "disableParallelRingingToNetworkLocations": false,
    "routeToVoiceMail": false,
    "playNewPhoneNumber": false,
    "transferOnZeroToPhoneNumber": false,
    "outboundCallMode": "Block All",
    "exemptOutboundMobilityCalls": false,
    "rerouteOutboundCalls": false
  },
  "Internal Calling Line ID Delivery": {
    "isActive": true
  },
  "MWI Delivery to Mobile Endpoint": {
    "isActive": false
  },
  "Malicious Call Trace": {
    "isActive": false,
    "traceTypeSelection": "Answered Incoming",
    "traceForTimePeriod": false
  },
  "Number Portability Announcement": {
    "enable": false
  },
  "Physical Location": {
    "isActive": false
  },
  "Pre-alerting Announcement": {
    "isActive": false,
    "audioSelection": "Default",
    "videoSelection": "Default",
    "criteria": []
  },
  "Preferred Carrier User": {
    "intraLataCarrier": {
      "useGroupPreferredCarrier": "false"
    },
    "interLataCarrier": {
      "useGroupPreferredCarrier": "false"
    },
    "internationalCarrier": {
      "useGroupPreferredCarrier": "false"
    }
  },
  "Prepaid": {
    "isActive": false
  },
  "Priority Alert": {
    "isActive": false,
    "criteria": []
  },
  "Privacy": {
    "enableDirectoryPrivacy": false,
    "enableAutoAttendantExtensionDialingPrivacy": false,
    "enableAutoAttendantNameDialingPrivacy": false,
    "enablePhoneStatusPrivacy": false,
    "permittedMonitors": []
  },
  "Push to Talk": {
    "allowAutoAnswer": true,
    "outgoingConnectionSelection": "Two Way",
    "accessListSelection": "Allow Calls From Selected Users",
    "users": []
  },
  "Remote Office": {
    "isActive": false
  },
  "Route List": {
    "treatOriginationsAndPBXRedirectionsAsScreened": true,
    "useRouteListIdentityForNonEmergencyCalls": true,
    "useRouteListIdentityForEmergencyCalls": true,
    "assignedNumberPrefixTable": [],
    "dns": []
  },
  "Security Classification": [],
  "Selective Call Acceptance": [],
  "Selective Call Rejection": [],
  "Sequential Ring": {
    "ringBaseLocationFirst": true,
    "baseLocationNumberOfRings": 2,
    "continueIfBaseLocationIsBusy": true,
    "callerMayStopSearch": true,
    "locations": [
      {
        "phoneNumber": "",
        "numberOfRings": 3,
        "answerConfirmationRequired": false
      },
      {
        "phoneNumber": "",
        "numberOfRings": 3,
        "answerConfirmationRequired": false
      },
      {
        "phoneNumber": "",
        "numberOfRings": 3,
        "answerConfirmationRequired": false
      },
      {
        "phoneNumber": "",
        "numberOfRings": 3,
        "answerConfirmationRequired": false
      },
      {
        "phoneNumber": "",
        "numberOfRings": 3,
        "answerConfirmationRequired": false
      }
    ],
    "criteria": []
  },
  "Shared Call Appearance": {
    "alertAllAppearancesForClickToDialCalls": false,
    "alertAllAppearancesForGroupPagingCalls": false,
    "maxAppearances": 35,
    "allowSCACallRetrieve": false,
    "enableMultipleCallArrangement": true,
    "multipleCallArrangementIsActive": true,
    "allowBridgingBetweenLocations": false,
    "bridgeWarningTone": "None",
    "enableCallParkNotification": false,
    "endpoints": []
  },
  "Silent Alerting": {
    "isActive": false
  },
  "Simultaneous Ring Personal": {
    "isActive": false,
    "doNotRingIfOnCall": true,
    "criteria": [],
    "locations": []
  },
  "Speed Dial 100": {
    "speedCodes": []
  },
  "Speed Dial 8": {
    "speedCodes": [
      {
        "speedCode": "2"
      },
      {
        "speedCode": "3"
      },
      {
        "speedCode": "4"
      },
      {
        "speedCode": "5"
      },
      {
        "speedCode": "6"
      },
      {
        "speedCode": "7"
      },
      {
        "speedCode": "8"
      },
      {
        "speedCode": "9"
      }
    ]
  },
  "Terminating Alternate Trunk Identity": [],
  "Third-Party Voice Mail Support": {
    "isActive": false,
    "busyRedirectToVoiceMail": true,
    "noAnswerRedirectToVoiceMail": true,
    "serverSelection": "Group Mail Server",
    "mailboxIdType": "User Or Group Phone Number",
    "noAnswerNumberOfRings": 2,
    "alwaysRedirectToVoiceMail": false,
    "outOfPrimaryZoneRedirectToVoiceMail": false
  },
  "Two-Stage Dialing": {
    "isActive": true,
    "allowActivationWithUserAddresses": false
  },
  "Video Add-On": {
    "isActive": false,
    "maxOriginatingCallDelaySeconds": 2
  },
  "Voice Messaging User": {
    "Voice Messaging User": {
      "isActive": false,
      "processing": "Unified Voice and Email Messaging",
      "voiceMessageDeliveryEmailAddress": "mreverman@parkbenchsolutions.com",
      "usePhoneMessageWaitingIndicator": true,
      "sendVoiceMessageNotifyEmail": false,
      "sendCarbonCopyVoiceMessage": false,
      "transferOnZeroToPhoneNumber": false,
      "alwaysRedirectToVoiceMail": false,
      "busyRedirectToVoiceMail": true,
      "noAnswerRedirectToVoiceMail": true,
      "outOfPrimaryZoneRedirectToVoiceMail": false,
      "serviceProviderId": "ent.odin",
      "groupId": "grp.odin",
      "userId": "9871515000@odinapi.net"
    },
    "Voice Messaging User Advanced": {
      "mailServerSelection": "Group Mail Server",
      "groupMailServerEmailAddress": "mreverman@parkbenchsolutions.com",
      "groupMailServerUserId": "vm9871515000",
      "useGroupDefaultMailServerFullMailboxLimit": true,
      "personalMailServerProtocol": "POP3",
      "personalMailServerRealDeleteForImap": false,
      "serviceProviderId": "ent.odin",
      "groupId": "grp.odin",
      "userId": "9871515000@odinapi.net"
    },
    "Voice Messaging User Greeting": {
      "busyAnnouncementSelection": "Default",
      "noAnswerAnnouncementSelection": "Default",
      "extendedAwayEnabled": false,
      "extendedAwayDisableMessageDeposit": true,
      "noAnswerNumberOfRings": 2,
      "disableMessageDeposit": false,
      "disableMessageDepositAction": "Disconnect",
      "userId": "9871515000@odinapi.net"
    },
    "Voice Messaging User Voice Portal": {
      "usePersonalizedName": true,
      "voicePortalAutoLogin": true,
      "serviceProviderId": "ent.odin",
      "groupId": "grp.odin",
      "userId": "9871515000@odinapi.net",
      "audioFile": {
        "description": "aa1 copy is a copy of the Let's go song",
        "mediaType": "WAV"
      }
    }
  },
  "Voice Portal Calling": {
    "isActive": false
  },
  "Zone Calling Restrictions": []
}
here