APIs & Integrations

Devesh
Miembro

Use of Private APP throwing error

Devesh_0-1669379594568.png

Hi, I am using code in python to update a property in HS as shown above but getting error message response 404.

Please let me know what i am missing.

0 Me gusta
2 Respuestas 2
skimura
Colaborador | Partner nivel Platinum
Colaborador | Partner nivel Platinum

Use of Private APP throwing error

@Devesh 

 

Hi.

 

How about this ?

 

# url = "https://api.hubapi.com//crm/v3/objects/deals/" + str(DealId)
url = "https://api.hubapi.com/crm/v3/objects/deals/" + str(DealId)
data = {
    #"properties": [
    #    {
    #        "name": "bq_project_id",
    #        "value": "Active"
    #    }
    #]
    "properties": {
        "bq_project_id": "Active"
    }
}
headers = { 'authorization': 'Bearer XXXXX' }
# r = requests.put(url, data = data, headers=headers)
r = requests.patch(url, data = data, headers=headers)

 

 

Please check this.

https://developers.hubspot.com/docs/api/crm/deals

>PATCH /crm/v3/objects/deals/{dealId}

 

Thanks.

 

0 Me gusta
Jaycee_Lewis
Administrador de la comunidad
Administrador de la comunidad

Use of Private APP throwing error

Hi, @Devesh 👋 Thanks for reaching out. Hey, @taran42, do you have any experience here? 

 

Thank you! Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Me gusta