# API - Updating Lead fields

### Route

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

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

### Query Params

<table><thead><tr><th width="291">Key</th><th width="450">Description</th></tr></thead><tbody><tr><td>i</td><td>Identifier of your instance, subdomain </td></tr><tr><td>apitoken</td><td>API token</td></tr></tbody></table>

### Default system fields

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

## Example updating Lead fields

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

<figure><img src="/files/ab0f9390ffd7326c46134ebd9ebdd147f24e1778" alt=""><figcaption><p><em>PUT request to update Lead.</em></p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sprinthub.com/en/topics/api/api-updating-lead-fields.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
