# (405)- Method Not Allowed

**URL:** <https://community.hubspot.com/t/405-method-not-allowed/11231>\
**Category:** APIs & Integrations\
**Created:** [October 27, 2016, 10:06pm UTC](https://community.hubspot.com/t/405-method-not-allowed/11231 "2016-10-27T22:06:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 27, 2016, 10:06pm UTC](https://community.hubspot.com/t/405-method-not-allowed/11231/1 "2016-10-27T22:06:04Z")

</div>

Hey guys,

I’m trying to integrate NetSuite and HubSpot for Contact and Company and get this (405) error when trying to upload Company to HubSpot. Can you please look at the below API Request/Response? Thank you!

**Error** :  
HTTP/1.1 405 Method Not Allowed  
Access-Control-Allow-Credentials: false  
Allow: HEAD,DELETE,GET,OPTIONS,PUT  
Content-Length: 0  
Date: Wed, 26 Oct 2016 15:09:51 GMT  
Connection: close

**My API Call:**  
POST [https://api.hubapi.com/companies/v2/companies/271347468?hapikey=\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*](https://api.hubapi.com/companies/v2/companies/271347468?hapikey= ************************ ) HTTP/1.1  
Content-Type: application/json  
Host: [api.hubapi.com](http://api.hubapi.com)  
Content-Length: 852  
Expect: 100-continue

{“properties”:[  
{  
“name”: “name”,  
“value”: “test”  
},  
{  
“name”: “address”,  
“value”: “test”  
},  
{  
“name”: “city”,  
“value”: “test”  
},  
{  
“name”: “state”,  
“value”: “test”  
},  
{  
“name”: “hubspot\_owner\_id”,  
“value”: “17003150”  
},  
{  
“name”: “zip”,  
“value”: “30022”  
},  
{  
“name”: “country”,  
“value”: “United States”  
},  
{  
“name”: “lead\_record\_status”,  
“value”: “PROSPECT-Quote”  
},  
{  
“name”: “original\_business\_unit”,  
“value”: “test”  
},  
{  
“name”: “email”,  
“value”: “test”  
},  
{  
“name”: “ns\_stage”,  
“value”: “Prospect”  
},  
{  
“name”: “is\_person”,  
“value”: “Company”  
}  
]}

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 30, 2016, 10:31pm UTC](https://community.hubspot.com/t/405-method-not-allowed/11231/2 "2016-10-30T22:31:47Z")

</div>

Hi [@HighJump\_Muvdata](https://community.hubspot.com/u/highjump_muvdata),

Your call is attempting to POST to an explicit `companyID`, which isn’t possible; `companyId`s are generated by the HubSpot backend and returned within the response to the call. Currently you’re POSTing to the [‘Update a Company’ endpoint found here](http://developers.hubspot.com/docs/methods/companies/update_company), which only allows the PUT HTTP method, not POST.

If you try your call again, POSTing to [https://api.hubapi.com/companies/v2/companies?hapikey=\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*](https://api.hubapi.com/companies/v2/companies?hapikey= ************************ ), you should find that the call will be successful.

Let me know if you require further assistance.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 31, 2016, 10:05pm UTC](https://community.hubspot.com/t/405-method-not-allowed/11231/3 "2016-10-31T22:05:12Z")

</div>

Thank you, that helped much!

I have another request not sending to Company, but to Contact. Can you please take a look at below?

POST [https://api.hubapi.com/contacts/v1/contact/vid/1264653/profile?hapikey=\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*HTTP/1.1](https://api.hubapi.com/contacts/v1/contact/vid/1264653/profile?hapikey= ***************** HTTP/1.1)  
Content-Type: application/json  
Host: [api.hubapi.com](http://api.hubapi.com)  
Content-Length: 884  
Expect: 100-continue

{“properties”:[  
{  
“property”: “email”,  
“value”: “[test@test.com](mailto:test@test.com)”  
},  
{  
“property”: “hubspot\_owner\_id”,  
“value”: “000000”  
},  
{  
“property”: “city”,  
“value”: “Swanzey”  
},  
{  
“property”: “zip”,  
“value”: “03446”  
},  
{  
“property”: “country”,  
“value”: “United States”  
},  
{  
“property”: “subsidiary”,  
“value”: “Test, Inc.”  
},  
{  
“property”: “ns\_current\_contact\_id”,  
“value”: “00000”  
},  
{  
“property”: “ns\_current\_customer\_id”,  
“value”: “00000”  
},  
{  
“property”: “ns\_stage”,  
“value”: “Customer”  
},  
{  
“property”: “ns\_type”,  
“value”: “Contact”  
},  
{  
“property”: “channel\_tiers”,  
“value”: “End User”  
},  
{  
“property”: “lead\_record\_status”,  
“value”: “CUSTOMER-Closed Won”  
}  
]}  
HTTP/1.1 409 Conflict  
Access-Control-Allow-Credentials: false  
Content-Type: application/json; charset=UTF-8  
Vary: Accept-Encoding  
Vary: Accept-Encoding  
Content-Length: 547  
Date: Mon, 31 Oct 2016 21:55:26 GMT  
Connection: close

{“status”:“error”,“message”:“A contact with the email ‘Optional[test@test.com]’ already exists.”,“correlationId”:“44bcee89-79dc-4a15-982e-59b0f7d6c715”,“identityProfile”:{“vid”:1202825,“identity”:[{“value”:“jacquelyn@frazierandsonfurniture.com”,“type”:“EMAIL”,“timestamp”:1476916078299},{“value”:“e57e10c2-c4b0-4a8a-90ed-983031212877”,“type”:“LEAD\_GUID”,“timestamp”:1476916080788}],“linkedVid”:[],“isContact”:true,“savedAtTimestamp”:1476916080789},“error”:“CONTACT\_EXISTS”,“requestId”:“c132480f-4bea-4e4d-a5f6-9c61edece24d”}
