Update a Lead is not working!

Hi!

I’m trying to update the owner of my leads using the PATCH method and the next url according to the documentation:

https://{company_name}.pipedrive.com/api/v1/leads/{id}/?api_token={api_token}&owner_id={owner_id}

The response is 200 but the lead owner is not updated. In the response content the owner_id doesn’t change either

Help Please

Hey @DavidLopez
Thanks for sharing the details. From the looks of it, you seem to be passing owner_id as a query parameter and not as part of the request body. Can you pass it in the request body as a JSON with content-type header set to application/json ?

Let me know if I am missing something?