# POST /calculators/:calculator_id/publish

**Resource:** [CALCULATORS](./calculators.md)  
**MCP tool:** `publish_calculator`  
**Scopes:** `calculators:write`  
**Write operation:** yes

Publish the draft as the next version: it goes live at once everywhere the calculator is used, and every gift and quiz that uses it (update_gift / update_quiz calculator_id) follows it. Refused while the draft has problems, when nothing changed, or when a gift or quiz that uses it would break (each is named, with what to fix). Runs already saved keep the version they used, so their figures never change.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `calculator_id` | path | string | yes | The calculator (list_calculators). |
| `notes` | body | string | no | What changed in this version, for your team (up to 500 characters). |
| `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 POST   "https://api.trustpager.com/functions/v1/api/v1/calculators/:calculator_id/publish"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"notes":"...","require_approval":"..."}'
```

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