src/railcontent.js
/**
 * Delete the content progress for the authenticated user
 *
 * @param {Object} params - Function parameters
 * @param {String} params.url - The endpoint url
 * @param {String|Number} params.content_id - The content id you want to start
 * @returns {Promise} Response or Error Object
 */
Delete the content progress for the authenticated user
@param {Object} params - Function parameters
@param {String} params.url - The endpoint url
@param {String|Number} params.content_id - The content id you want to start
@returns {Promise} Response or Error Object
Delete the content progress for the authenticated user @param { Object } params - Function parameters @param { String } params . url - The endpoint url @param { String|Number } params . content_id - The content id you want to start @returns { Promise } Response or Error Object
function resetAuthenticatedUserProgress({
    url = '',
    content_id,
}) {
    return new Promise((resolve) => {
        axios
            .put(`${url}/railcontent/reset`, {
                data: {
                    content_id,
                },
            })
            .then((response) => {
                resolve({ response });
            })
            .catch((error) => {
                resolve({ error });
            });
    });    
}
function resetAuthenticatedUserProgress ( { url = '' , content_id , } ) { return new Promise ( ( resolve ) => { axios . put ( ` ${ url } ` , { data : { content_id , } , } ) . then ( ( response ) => { resolve ( { response } ) ; } ) . catch ( ( error ) => { resolve ( { error } ) ; } ) ; } ) ; }
Delete the content progress for the authenticated user
 @param {Object} params - Function parameters
 @param {String} params.url - The endpoint url
 @param {String|Number} params.content_id - The content id you want to start
 @returns {Promise} Response or Error Object
Delete the content progress for the authenticated user @param { Object } params - Function parameters @param { String } params . url - The endpoint url @param { String|Number } params . content_id - The content id you want to start @returns { Promise } Response or Error Object