Trying to update a deal, passing deal id and new deal value:
pipedrive.Deals.update({id: 3661}, {value: 200}, function(updateErr, updateData) {
if (updateErr) {
console.log(updateErr);
} else {
console.log(‘Product was updated’, updateData);
}
});
Error I’m getting:
Error: Pipedrive API error:There was an error in your request. Please refer to the API documentation and check your request validity against the documentation.
The node module documentation only gives example of updating a dealProduct.
And this: pipedrive.{Object}.update (id, data, [fn callback])
Link to documentation
Any ideas of what I’m doing wrong?