> 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-api-call-to-update-lead-utms.md).

# API - API call to update Lead UTMs

If you are bringing your Leads from another system, it is not yet possible to include, in spreadsheet imports, the UTMs that those Leads may have, originating from other systems.

But it is possible to bring these UTMs via API. Use the following request

## Update Lead UTM Tags

<mark style="color:green;">`PUT`</mark> `/leads/utm/XXXX?i=instancia`

XXX = Lead ID

Full endpoint: <https://sprinthub-api-master.sprinthub.app/leads/utm/XXXX?i=instancia>

NOTE: Each request will add a new line to the Lead UTM Tags tab.

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |
| apitoken      | XXXXXX             |

**Body**

<table><thead><tr><th>Name</th><th width="206">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>utm_campaign</code></td><td>string</td><td>UTM CAMPAIGN</td></tr><tr><td><code>utm_content</code></td><td>string</td><td>UTM CONTENT</td></tr><tr><td><code>utm_source</code></td><td>string</td><td>UTM SOURCE</td></tr><tr><td><code>utm_medium</code></td><td>string</td><td>UTM MEDIUM</td></tr><tr><td><code>utm_term</code></td><td>string</td><td>UTM TERM</td></tr></tbody></table>

**Examples:**

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FoAMhqILz8C28uqJx4svc%2FCaptura%20de%20Tela%202024-03-22%20a%CC%80s%2011.34.50.png?alt=media&amp;token=36ba8a8c-fe9c-47e8-9354-5d560a31de73" alt=""><figcaption></figcaption></figure>

Result

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2Fx1b9PvuZE2YYTkPZo4as%2FCaptura%20de%20Tela%202024-03-22%20a%CC%80s%2011.34.39.png?alt=media&amp;token=e37354e8-043d-4b93-9b04-e40a4528cd07" alt=""><figcaption></figcaption></figure>
