axios put request payload code example
Example 1: axios put
const res = await axios.put('https://httpbin.org/put', { hello: 'world' });
res.data.headers['Content-Type']; // application/json;charset=utf-8
Example 2: js add body data to put request
fetch(url, {
method: 'PUT',
body: "any type of data"
});