Skip to main content
The First Step
August 1, 2022
Question

Update IvrMenu Key presses

Making an app for our locations to be able to change Key presses for who is on call. we have it setup for the 2 departments. so key press "1" and "2" . I've got pretty much everything working except when you send a put to https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension?

and update the key press for one of them it seems to delete the second key press. it does this using the api reference page as well. is there a way to keep the key press not selected from being removed or changed in anyway?

    3 replies

    PhongVu
    Community Manager
    Community Manager
    August 1, 2022

    Can you post some params what you exactly set to update the extension to change the key press? I don't see those params in that /extension endpoint.

    jlandrumThe First StepAuthor
    The First Step
    August 2, 2022

    sorry ive been using the
    https://platform.devtest.ringcentral.com
    /restapi/v1.0/account/accountId/ivr-menus/ivrMenuId as a PUT and ive been using

    {

    'actions': [

    {

    'extension': {

    'id': '{{Table1.selectedRow.id}}',

    },

    'input': '1',

    'action': 'Connect',

    }

    as json. it doesnt look like you guys allow the PATCH request that i could find. i can make it work to get all the key presses uri from the get and work it into my app just was hoping for an easier way. new to all this and dont know all the shortcuts yet


    PhongVu
    Community Manager
    Community Manager
    August 2, 2022

    Yes, the right way to do is to read an IVR menu, change the setting values, then update the IVR menu using those endpoints.

    Let me know if you are still facing problem. I will check if we support the PATCH for this API.