> For the complete documentation index, see [llms.txt](https://doc.opentact.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.opentact.org/opentact-api-documentation/tn-profile/add-whitelist-to-tn-profile/example-api-call.md).

# Example API Call

Here is how you can add whitelist to a TN Profile.&#x20;

{% code title=" " %}

```bash
 ### update whitelist
POST {{base_url}}/profile/tn/5469cd60-3abb-4162-ae34-47c56aae423a/whitelist
Content-Type: application/json
X-Auth-Token: {{token}}
{
  "add": [
    12345678200,
    12345678901,
    12345678902,
    12345678903,
    12345678999
  ]
}


```

{% endcode %}

In the above API, you can use a bearer instead of JWT.

After uploading they should assign all tn\_leases to new whitelist profile like this:

```bash
PATCH {{base_url}}/lease/tn/<TNLEASE UUID | PHONE NUMBER>
Content-Type: application/json
X-Auth-Token: {{token}}
{
  "tn_profile": "5469cd60-3abb-4162-ae34-47c56aae423a"
}
```

&#x20;
