lib/api/modules/channels.js
function (channelIdentifier, triggerIdentifier, data) {
      var path,
          rejectMsg;
      if (channelIdentifier && triggerIdentifier && data) {
        path = this.constructPath(constants.CHANNELS, channelIdentifier, constants.TRIGGERS, triggerIdentifier);
        return this.Core.PATCH(path, data);
      } else {
        rejectMsg = 'Bad Request: A channel identifier, a feed identifier and a trigger object are required.';
        return this.rejectRequest(rejectMsg);
      }
    }
function (channelIdentifier, triggerIdentifier, data) {
      var path,
          rejectMsg;
      if (channelIdentifier && triggerIdentifier && data) {
        path = this.constructPath(constants.CHANNELS, channelIdentifier, constants.TRIGGERS, triggerIdentifier);
        return this.Core.PATCH(path, data);
      } else {
        rejectMsg = 'Bad Request: A channel identifier, a feed identifier and a trigger object are required.';
        return this.rejectRequest(rejectMsg);
      }
    }
function ( channelIdentifier , triggerIdentifier , data ) { var path , rejectMsg ; if ( channelIdentifier && triggerIdentifier && data ) { path = this . constructPath ( constants . CHANNELS , channelIdentifier , constants . TRIGGERS , triggerIdentifier ) ; return this . Core . PATCH ( path , data ) ; } else { rejectMsg = 'Bad Request: A channel identifier, a feed identifier and a trigger object are required.' ; return this . rejectRequest ( rejectMsg ) ; } }
Update a trigger on a channel
@param  {String|Integer} channelIdentifier A Robin channel identifier
@param  {String|Integer} triggerIdentifier A Robin channel trigger identifier
@param  {Object}         data              A querystring object
@return {Function}                         A Promise
Update a trigger on a channel