# POST /opportunities/:opportunity_id/buckets

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

Create a product bucket on an opportunity. A bucket is a labelled grouping (e.g. "Main Bathroom") that line items file under, so the quote breaks down per area with its own subtotal on the products list, invoices, and the rendered estimate.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `opportunity_id` | path | string | yes |  |
| `label` | body | string | yes | The bucket heading shown everywhere this opportunity is priced (e.g. "Main Bathroom"). |
| `sort_order` | body | number | no |  |
| `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/opportunities/:opportunity_id/buckets"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"label":"...","sort_order":"..."}'
```

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