Update a Lead is not working!

Hi @DavidLopez
thanks for sharing the snippet.

I see that the issue is a result of passing ID as a query parameter. Can you change

https://{company_name}.pipedrive.com/api/v1/leads/?id=532c0b40-3913-11ec-90e4-e5e59deb1413&api_token={api_token}

to

https://{company_name}.pipedrive.com/api/v1/leads/532c0b40-3913-11ec-90e4-e5e59deb1413&api_token={api_token}