<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Why am I getting error 405 when doing a PUT request and not when doing a GET or POST in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Why-am-I-getting-error-405-when-doing-a-PUT-request-and-not-when/m-p/607067#M52151</link>
    <description>&lt;P&gt;I'm working on a backend server with Hubspot API, recently I've been doing GET and POST request and everything works properly.&lt;/P&gt;&lt;P&gt;Now I'm trying to do a PUT request but get the error of&amp;nbsp;Error: Request failed with status code 405 &lt;A href="https://deepmaterialcn.com/" target="_blank" rel="noopener"&gt;&lt;FONT color="#FFFFFF"&gt;Link&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am using the same code as the working POST request, just changed the method and still throws error.&lt;/P&gt;&lt;PRE&gt;app.get('/createDeal', async function(req, res) {
  axios.put('https://api.hubapi.com/crm/v3/objects/contacts/{contactID}?hapikey={key}', {
    "properties": {
      "hs_lead_status": "Open",
    }
  })
  .then(function (response) {
    console.log(response);
  })
  .catch(function (error) {
    console.log(error);
  });
})&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 10 Apr 2022 20:53:16 GMT</pubDate>
    <dc:creator>WZone</dc:creator>
    <dc:date>2022-04-10T20:53:16Z</dc:date>
  </channel>
</rss>

