const axios = require('axios'); axios.put('http://localhost:3000/dolgozok/4/', { "fullname": "Kék Tamás", "city": "Miskolc", "salary": 2850000 }).then(resp => { console.log(resp.data); }).catch(error => { console.log(error); });