Upsert API for leads update

Upsert API for leads update

Hello,
I'm trying to use the Upsert API for leads

When i send my lead data a first time to the upsert API, it create correctly the the lead
If i send the same request a second time, i get the error "the id given seems to be invalid"

When i checlk on the forum, it seams to be a dupplicate problem with the email 
( i tried, if a change the email sent in the second call, it create a new record )
My question is how to update a lead created with upsert call ? i see there is a dupplciate protection option on conververted lead but the lead created on first call is not a converted one, just a simple lead

Thanks in advance