title: How to add id and body to axios.PUT request?
body: <p>I am using axios with REACT and wondering how I can use it to make a put request to update an object through the backend node/express API I have set up. </p>
  
  <p>I need to be able to pass an <code>id</code> and a <code>body</code> and not sure of how to do so. </p>
  
  <pre><code>axios.put('/api/profile', id, body)
  .then(response =&gt; { 
  
  console.log(response.data);
  })
  .catch(err =&gt; { 
  
  console.log(err);
  });
  </code></pre>
  
  <p>I do not think this will work as it takes the parameters of <code>put(url, data, {headers})</code></p>