API PUT request fails with 400 Bad Request - Help needed

I am trying to make a PUT request to update a specific deal field value using the following request via insomnia:


I am sending this via Insomnia configured as per the pipedrive api documentation. I am lost as to how to troubleshoot this issue as everything appears to be in order.

Advice would be appreciated.

I have been trying to get any PUT request working with any deal within Insomnia, and every time I get the response:

	"success": false,
	"error": "Bad request",
	"error_info": "Please check developers.pipedrive.com for more information about Pipedrive API.",
	"data": null,
	"additional_data": null

Insomnia always shows the url format as:

PUT https://{companydomain}.pipedrive.com/api/v1/deals/{id}?api_token={API Token}&{deal field}={value}

I really cannot figure out why this isn’t working.

As before, any advice or pointers would be really appreciated.

Hey Pete,
The problem is that you’re sending the attributes in the query string. You need to send them in the body of the request. Either as form url encoded or json :slight_smile: