Response bad request - PUT custom field organizations

Hello, I’m having a bug in the PUT request of custom deal fields, what is the correct url?
https: // '. company_domain. '.pipedrive.com / v1 / deals /'. deal_id. ‘? api_token =’. api_token or https: // '. company_domain. ‘.pipedrive.com / v1 / organizations /’. org_id. '? api_token ='. api_token

My return is bad request 400

When using a token API base URL is:
https://api.pipedrive.com/v1

Are you trying to update Deal, or Organization records?

replace the {id} with the record id, which will be a number, e.g: 1

The best place to get started is here:
https://developers.pipedrive.com/docs/api/v1/#!/Deals

You can test the API and view successful requests/responses

2 Likes

Hi, Tim!

The solution was to change the Header to application/x-www-form-urlencoded.

Thank you!

1 Like

Yes, you can either use x-www-form-urlencoded or send the body as JSON :+1: