APIs & Integrations

enrike1983
Member

Dealstage update

Hi, these are my first attempts of integrations with hubspot apis.
I’d like to change the stage for a given deal. I’ve already checked the API reference ( https://developers.hubspot.com/docs/methods/deals/update_deal ). It looks clear enough how to alter the deal properties, but specifically to change the dealstage what is supposed to be done to avoid inconsistencies? Getting a single deal json I can see under “properties” the “dealstage” key with the dealstage properties. Is it necessary to alter this property in its entireness? Anything else is needed?

thank you!

Enrico

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Dealstage update

Hi @enrike1983,

If you’re looking to update a single deal’s deal stage, you’ll just want to use the update deal endpoint you listed to change the dealstage property. For example:

{
  "properties": [
    {
      "name": "dealstage",
      "value": "closed_won"
    }
  ]
}