Postman shows the following code as an example of how to update a deal. However, this code produces a 400 response with the message "Cannot PUT /api.pipedrive.com/v1/deals/
What is the correct way to call this API end point so that I can update a field on a deal
Cheers
Andy
curl --location --request PUT 'https://api.pipedrive.com/v1/deals/<integer>?api_token=my token goes here' \
--data '{
"title": "test entry",
}'
Hello, @Andy_Burnett 
From the example you provided, you should remove the comma after the title
parameter in the request body section, otherwise the JSON is malformed.
Here’s an example along with the Content-Type header:
curl --location --request PUT 'https://api.pipedrive.com/v1/deals/my_deal_ID?api_token=my_api_token' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"title": "test entry"
}'
Let us know if you have additional questions!
Helena