# PATCH /websites/:website_id/search-console-link

**Resource:** [Websites](./websites.md)  
**MCP tool:** `update_website_search_console_link`  
**Scopes:** `websites:write`  
**Write operation:** yes

Choose which verified Google Search Console site a website reads from, so get_website_search_traffic and the Traffic tab show it. Send site_url null to remove the link. Needs Search Console access on the workspace's Google connection: without it the answer is 409 SEARCH_ACCESS_NEEDED with the link a workspace admin opens to add it.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `website_id` | path | string | yes | UUID of the website. Get ids from list_websites. |
| `site_url` | body | string | no | The verified Search Console site that covers this website (from list_search_console_sites). Send null to remove the link. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X PATCH   "https://api.trustpager.com/functions/v1/api/v1/websites/:website_id/search-console-link"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"site_url":"...","require_approval":"..."}'
```

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