> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/api/api-updating-lead-fields.md).

# API - Updating Lead fields

How to update Lead fields via API.

### Route

<mark style="color:green;">`PUT`</mark> `/leads?apitoken=seu-token&i=sua-instancia`

Full endpoint: <mark style="color:green;"><https://sprinthub-api-master.sprinthub.app/leads?apitoken=seu-token\\&i=sua-instancia></mark>

### Query Params

<table><thead><tr><th width="291">Key</th><th width="450">Description</th></tr></thead><tbody><tr><td>i</td><td>Your instance identifier, subdomain </td></tr><tr><td>apitoken</td><td>API Token</td></tr></tbody></table>

### System default fields

[Click here ](https://docs.sprinthub.com/en/topics/api/api-creating-a-lead.md)to see what the system default fields for Leads are, such as, for example, *firstname*, *lastname*, *whatsapp*, among others.

## Example of updating Lead fields

The aliases of the fields to be updated for the Lead were inserted in the request body. The request was sent using the software *Postman*.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FlDULMUtWIJBVlhBQspyH%2FAtualizando-Lead.png?alt=media&amp;token=a0c54ad0-6234-4c02-bce1-761a887bd387" alt=""><figcaption><p><em>PUT request to update a Lead.</em></p></figcaption></figure>
