# POST /opportunities/:id/images/:imageId

**Resource:** [Opportunities](./opportunities.md)  
**Scopes:** `opportunities:write`, `files:read`  
**Write operation:** yes

Attach an existing image file (type=image) to an opportunity. Legacy alias: POST /deals/:id/images/:imageId. Matching MCP tool: add_opportunity_image.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `id` | path | uuid | yes | Opportunity ID |
| `imageId` | path | uuid | yes | Image file ID to attach |

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