src/api/BridgesAPI.js
/**
   * POST /bridges
   *
   * Create a new bridge. This bridge persists until it has been shut down,
   * or Asterisk has been shut down.
   *
   * @param {object} params
   * @param {string|Array.<string>} [params.type] The attributes to set on the
   *  bridge that determine how the bridge mixes media between its
   *  participants. Possible attributes are 'mixing', 'holding', 'dtmf_events',
   *  and 'proxy_media'. 'dtmf_events' and 'proxy_media' are only valid when
   *  also supplied with 'mixing'. 'holding' and 'mixing' are mutually
   *  exclusive. *Allows multiple values since Asterisk 12.2*
   * @param {string} [params.name] A name to give to the bridge being created.
   * @param {string} [params.bridgeId] The unique identifier for the bridge.
   *  *Param available since Asterisk 12.2*
   * @returns {Promise.<Bridge>} Resolves to the newly created bridge.
   */
POST /bridges
Create a new bridge. This bridge persists until it has been shut down,
or Asterisk has been shut down.

@param {object} params
@param {string|Array.} [params.type] The attributes to set on the
bridge that determine how the bridge mixes media between its
participants.
POST / bridges Create a new bridge . This bridge persists until it has been shut down or Asterisk has been shut down . @param { object } params @param { string|Array . } [ params . type ] The attributes to set on the bridge that determine how the bridge mixes media between its participants .
create(params = {}) {
    const { type, name, bridgeId } = params;
    return this._request({
      method: "POST",
      url: `${this._baseUrl}/bridges`,
      params: {
        name,
        bridgeId,
        type: [].concat(type).join(","),
      },
    });
  }
create ( params = { } ) { const { type , name , bridgeId } = params ; return this . _request ( { method : "POST" , url : ` ${ this . _baseUrl } ` , params : { name , bridgeId , type : [ ] . concat ( type ) . join ( "," ) , } , } ) ; }
POST /bridges
 Create a new bridge.
POST / bridges Create a new bridge .