We have a new property that we have enabled on some deals.
We wish to update other deals without this property enabled, to have this property enabled based on a list of known deal ids.
I could not see any API calls that would allow me to do this, is there any?
We can of course do it manually but that takes a lot of time.
@RJarrett
You could build out a workflow for this.
But, if it is a one time action, you could do a patch to the deals which would look like this using the post method:
https://api.hubapi.com/crm/v3/objects/deals/batch/update
{
"inputs": [
{
"id": "1",
"properties": {
"CustomProp": "Value",
}
},
{
"id": "2",
"properties": {
"CustomProp": "Value",
}
}
]
}
Thank you. I had seen the update api but had been confused by the ‘non-existant properties will be ignored’. The property I had wanted to add was decalared but was not associated with some of the deals. So I did not try it. Any way I do not have to do it as it was done manually.
Update
Perform a partial update of an Object identified by {dealId}. {dealId} refers to the internal object ID by default, or optionally any unique property value as specified by the idProperty query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.