# PATCH /referrals/links/:link_id

**Resource:** [Referrals](./referrals.md)  
**MCP tool:** `update_referral_link`  
**Scopes:** `referrals:write`  
**Write operation:** yes

Update a referral link — change its handle (slug), bound form, or active state (deactivate to disable a partner link without deleting it).

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `link_id` | path | string | yes |  |
| `slug` | body | string | no |  |
| `form_template_id` | body | string | no |  |
| `active` | body | boolean | no |  |

## Request example

```bash
curl -X PATCH   "https://api.trustpager.com/functions/v1/api/v1/referrals/links/:link_id"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"slug":"...","form_template_id":"...","active":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`