const axios = require('axios');
const url = 'https://auth.api.pinghome.io/v1/account/password';
const requestBody = {
email: 'pinghome@gmail.com',
code: '285009',
password: 'UpdatedPassw0rd!'
};
axios.patch(url, requestBody)
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});