I'm currently trying to create top-level IVR Menus and bind them to specific Sites via a REST API call to https://platform.devtest.ringcentral.com/restapi/v1.0/account/accountId/ivr-menus
One issue I'm facing is trying to derive the proper internal ID for the Site, which is to be specified as a parameter to the creation call. I've scoured the API reference documents, but can't seem to locate a proper GET call which can return a collection of sites and their respective IDs. The closest I've found is the restapi/v1.0/account/accountId/extension endpoint, and specify the extension number for the site. Ironically this doesn't return the Site ID, but if I specify the extension of an existing top-level IVR menu that is already bound to a Site, this /extension endpoint will return a site object with all the site details.
Unfortunately this won't help me in this scenario, since that is what I'm attempting to achieve, IVR Menu creation and association to an existing Site entity.
Any help would be greatly appreciated! Thx!