# PATCH /websites/:website_id/actions

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

Approve, or stop, extra actions for one website: approve adds, remove takes away (send_pdf, send_docusign, send_sms, slack_message, xero_create_contact_and_invoice). Only approve an action the site's own code actually uses, and only when the owner agrees: an approved action can be started by anyone who loads the site, within the website's rate limits. Returns the website's actions, as list_website_actions.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `website_id` | path | string | yes | UUID of the website. Get ids from list_websites. |
| `approve` | body | array | no | Actions to approve for this website (added to what is already approved). |
| `remove` | body | array | no | Actions to stop this website running. |
| `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/actions"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"approve":"...","remove":"...","require_approval":"..."}'
```

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