# POST /ab-tests/:test_id/promote

**Resource:** [AB_TESTS](./ab-tests.md)  
**MCP tool:** `promote_ab_test_winner`  
**Scopes:** `ab-tests:write`  
**Write operation:** yes

Finish an A/B test with a winner. From then on every lead gets that version, including leads who were in the others. Omit version_id to promote the version the results say is winning (refused while there is no clear winner); pass version_id to choose one yourself.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `test_id` | path | string | yes | The A/B test id. |
| `version_id` | body | string | no | The version to keep. Omit to promote the version the results say is winning. |
| `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/ab-tests/:test_id/promote"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"version_id":"...","require_approval":"..."}'
```

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