lib/endpoints/scheduled_overrides.js
/**
 * Deletes a scheduled override.
 *
 * @param {String} publicId Scheduled override Public ID.
 * @returns {Promise<Object>} VictorOps API response.
 */
Deletes a scheduled override.
@param {String} publicId Scheduled override Public ID.
@returns {Promise} VictorOps API response.
Deletes a scheduled override . @param { String } publicId Scheduled override Public ID . @returns { Promise } VictorOps API response .
async function deleteOverride(publicId) {
  try {
    const apiPrefix = this.getApiPrefix();
    const options = this._getRequestOptions('DELETE',
      `${apiPrefix}/overrides/${publicId}`);
    return await this._performRequest(options);
  } catch (err) {
    throw this._handleError(err);
  }
}
async function deleteOverride ( publicId ) { try { const apiPrefix = this . getApiPrefix ( ) ; const options = this . _getRequestOptions ( 'DELETE' , ` ${ apiPrefix } ${ publicId } ` ) ; return await this . _performRequest ( options ) ; } catch ( err ) { throw this . _handleError ( err ) ; } }
Deletes a scheduled override.
Deletes a scheduled override .
// Get the API prefix. // Get the request options. // Peform the request.