APIs & Integrations

DKachhawaha
Member

url for post method

i am using post request in python to pass parameters to custom object in hubspot ,so where shall i get the url ?

0 Upvotes
2 Replies 2
webdew
Guide | Diamond Partner
Guide | Diamond Partner

url for post method

Hi @DKachhawaha ,

Please check this documentation url for custom object.
https://developers.hubspot.com/docs/api/crm/crm-custom-objects



Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards. 

DKachhawaha
Member

url for post method

i have gone through this link and generated url ,but my progamme is giving output as "method not found 405 error"

below is the code and url for reference 

import requests

url = 'https://api.hubapi.com/crm/v3/schemas/p8943172_car?portalId=8943172&hapikey=84ee13ff-a860-4171-914c-6c122be8ffec'
myobj = {"Car Name": "benz",
"title": "luxury car",
"price": "five lacks"}
x = requests.post(data=myobj, url=url)
print(x.status_code, x.reason)
print(x.text)
0 Upvotes