src/api/BridgesAPI.js
/**
   * POST /bridges/{bridgeId}/moh
   *
   * Play music on hold to a bridge or change the music on hold class
   * that is currently playing.
   *
   * @param {object} params
   * @param {string} params.bridgeId The identifier of the bridge to play
   *  music on hold into.
   * @param {string} [params.mohClass] The class of music on hold to play.
   * @returns {Promise} Resolves when the music has successfully started playing
   *  in the bridge. Rejects if the bridge could not be found (status 404)
   *  or the bridge is not in the Stasis application (status 409).
   */
POST /bridges/{bridgeId}/moh
Play music on hold to a bridge or change the music on hold class
that is currently playing.

@param {object} params
@param {string} params.bridgeId The identifier of the bridge to play
music on hold into.
@param {string} [params.mohClass] The class of music on hold to play.
@returns {Promise} Resolves when the music has successfully started playing
in the bridge. Rejects if the bridge could not be found (status 404)
or the bridge is not in the Stasis application (status 409).
POST / bridges / { bridgeId } / moh Play music on hold to a bridge or change the music on hold class that is currently playing . @param { object } params @param { string } params . bridgeId The identifier of the bridge to play music on hold into . @param { string } [ params . mohClass ] The class of music on hold to play . @returns { Promise } Resolves when the music has successfully started playing in the bridge . Rejects if the bridge could not be found ( status 404 ) or the bridge is not in the Stasis application ( status 409 ) .
startMusicOnHold(params = {}) {
    const { bridgeId, mohClass } = params;
    const id = encodeURIComponent(bridgeId);
    return this._request({
      method: "POST",
      url: `${this._baseUrl}/bridges/${id}/moh`,
      params: { mohClass },
    });
  }
startMusicOnHold ( params = { } ) { const { bridgeId , mohClass } = params ; const id = encodeURIComponent ( bridgeId ) ; return this . _request ( { method : "POST" , url : ` ${ this . _baseUrl } ${ id } ` , params : { mohClass } , } ) ; }
POST /bridges/{bridgeId}/moh
 Play music on hold to a bridge or change the music on hold class
 that is currently playing.
POST / bridges / { bridgeId } / moh Play music on hold to a bridge or change the music on hold class that is currently playing .