# API - API call to update the Lead's UTMs

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

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

## Update Lead UTM Tags

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

XXX = Lead ID

Full endpoint: [https://sprinthub-api-master.sprinthub.app/leads/utm/XXXX?i=instance](https://sprinthub-api-master.sprinthub.app/leads/utm/XXXX?i=instancia)

Note: Each call will add a new row in the Lead's 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="/files/0a698e7ca93ffd6740d9f4ddbe9c63351ebf2c69" alt=""><figcaption></figcaption></figure>

Result

<figure><img src="/files/1e3563db3bf2c02dd31077a29645cf4c1f58d922" alt=""><figcaption></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-api-call-to-update-the-leads-utms.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.
