/// <summary> /// Updates a company IVR menu by ID. /// HTTP Method: put /// Endpoint: /restapi/{apiVersion}/account/{accountId}/ivr-menus/{ivrMenuId} /// Rate Limit Group: Medium /// App Permission: ReadAccounts /// User Permission: AutoReceptionist /// </summary> public async Task <IVRMenuInfo> Put(IVRMenuInfo iVRMenuInfo, RestRequestConfig restRequestConfig = null) { if (ivrMenuId == null) { throw new ArgumentException("Parameter cannot be null", nameof(ivrMenuId)); } return(await rc.Put <IVRMenuInfo>(Path(), iVRMenuInfo, null, restRequestConfig)); }
/// <summary> /// Creates a company IVR menu. /// HTTP Method: post /// Endpoint: /restapi/{apiVersion}/account/{accountId}/ivr-menus /// Rate Limit Group: Heavy /// App Permission: EditAccounts /// User Permission: AutoReceptionist /// </summary> public async Task <IVRMenuInfo> Post(IVRMenuInfo iVRMenuInfo, RestRequestConfig restRequestConfig = null) { return(await rc.Post <IVRMenuInfo>(Path(false), iVRMenuInfo, null, restRequestConfig)); }