title: Apps Script PUT API
body: <p>My goal is to update an API using Apps Script but I cannot work out how to do it. For simplicity sake here is my code:</p>
  <pre><code>let APIkey = &quot;...&quot;;
  let url = &quot;...&quot;
  
  newData = {&quot;stock_status&quot;: &quot;instock&quot;}
  
  //Update API
  </code></pre>
  <p>The problem is I do not know how to get any further. I have read the relevant docs to this API but to no avail and I couldn't find anything about put requests in the Apps Script docs.</p>