# PUT /gifts/:gift_id/pdf-design

**Resource:** [GIFTS](./gifts.md)  
**MCP tool:** `set_gift_pdf_design`  
**Scopes:** `gifts:write`  
**Write operation:** yes

Set the gift's PDF design: html (one page, from get_gift_starter_design), or file_id of a zip in Files holding the page with its images, fonts and stylesheets (packed into the page), or clear: true for the starter design. Scripts are removed. warnings lists values we do not fill.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `gift_id` | path | string | yes | The gift (list_gifts). |
| `html` | body | string | no | The design as one HTML page (start from get_gift_starter_design). Values like {{reader.first_name}} and {{plan.html}} are filled for each person. Scripts are removed. |
| `file_id` | body | string | no | Or a zip in Files holding the page (index.html) with its images, fonts and stylesheets; they are packed into the page. |
| `name` | body | string | no | A name for the design. |
| `clear` | body | boolean | no | true: go back to the starter design. |
| `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/gifts/:gift_id/pdf-design"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"html":"...","file_id":"...","name":"..."}'
```

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