# PUT /opportunities/:opportunity_id/proposal

**Resource:** [Opportunities](./opportunities.md)  
**MCP tool:** `save_opportunity_proposal`  
**Scopes:** `opportunities:write`  
**Write operation:** yes

Write an opportunity's Proposal Builder content by hand, checked against the workspace's proposal settings. Call get_opportunity_proposal first for the rules and the product_ids. Send the sections to write; a section left out keeps what is saved, and an empty one ("" or []) clears it. The save is refused, with every problem and its fix and nothing written, when the result breaks a setting: a section that is switched off, too many summary paragraphs (separated by a blank line), the wrong number of needs, deliverables or timeline phases, solutions when they are switched off (or missing when they are on), or recommended_products that are not exactly the products on the opportunity. Products are saved in the settings' sort order and switched-off content already saved is removed. Keeps the replaced version for one-click restore in the Proposal Builder. Costs no AI credits; to generate a proposal with AI use ai_needs_analysis.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `opportunity_id` | path | string | yes | The opportunity ID. |
| `client` | body | string | no | The client name shown on the proposal. |
| `contact` | body | string | no | The person the proposal is for. |
| `industry` | body | string | no | The client's industry. |
| `executive_summary` | body | string | no | The opening narrative. Paragraphs are separated by a blank line (two newlines); stay within rules.executive_summary.max_paragraphs. |
| `callout` | body | string | no | One sentence: the core value proposition. Only when rules.callout.on. |
| `needs` | body | array | no | The client's needs, between rules.needs.min and rules.needs.max. Each { need, solution }: give solution only when rules.needs.solutions is true. A plain string is read as { need }. |
| `recommended_products` | body | array | no | One entry for every product on the opportunity (products_on_opportunity) and no others: { product_id, solves: [sentences on what it does for the client] }. Saved in the settings' sort order. Only when rules.recommended_products.on. |
| `guaranteed_deliverables` | body | array | no | What the client can hold you to, between rules.guaranteed_deliverables.min and max. Only when rules.guaranteed_deliverables.on. |
| `timeline` | body | array | no | Delivery phases in order, between rules.timeline.min_phases and max_phases, e.g. { label: "Week 1", title: "Map Your Workflows", description }. Only when rules.timeline.on. |
| `closing_strategy` | body | array | no | Internal-only closing tactics for the sales team, never shown to the client. Only when rules.closing_strategy.on. |
| `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/opportunities/:opportunity_id/proposal"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"client":"...","contact":"...","industry":"..."}'
```

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