# PUT /websites/:website_id/mode

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

Draw a website made from a design in light or dark (own goes back to the design's own scheme). Only designs whose modes in list_website_designs lists both offer the choice. The whole site changes; visitors never see a switch. Saved to the live website, which rebuilds in a minute or two; when the website builder has unpublished changes to the site's settings, it is saved with them instead and goes live when they are published. Returns mode, previous_mode and the modes the design offers.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `website_id` | path | string | yes | UUID of the website. Get ids from list_websites. |
| `mode` | body | string | yes | Light or dark, as the Light and Dark choice on the Create website page: light, dark, or own for the design's own scheme. Only a scheme the website's design lists in its modes (list_website_designs) is accepted. |
| `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 PUT   "https://api.trustpager.com/functions/v1/api/v1/websites/:website_id/mode"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"mode":"...","require_approval":"..."}'
```

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