Dealstage update

deals

#1

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


#2

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"
    }
  ]
}