> ## Documentation Index
> Fetch the complete documentation index at: https://weights.fyi/run/llms.txt

# POST /v1/models/{model}/promote

```text
POST https://weights.fyi/run/v1/models/<model>/promote
Authorization: Bearer <token>                    scope: submit
{"version_id": "<id>", "force": false, "companions": [{"model": "<model>", "version_id": "<id>"}]}
```

**Available since:** 2026-10-20 model versions: included in this build; see [What is live](/run/docs/what-is-live.md) for deployment status.

**Answer time:** synchronous: the aliases change at once, then the call waits while each MLflow trace destination of your workspace is brought up to date, if you have any.

Makes a registered version the `champion` of a specialist (one of the service's task models with a fixed contract, such as `laya-link-scorer`). The champion is the version that serves: [POST /v1/classify](/run/docs/reference/classify.md) runs its bundle unless a call pins another version. The champion it replaces becomes `previous`, a `challenger` (the newest candidate) that is the promoted version is cleared, and one receipt records the promotion and the rule it met.

Without `force`, two checks guard the champion. The version must have passed its own gate (`metrics.gate_passed`), and it must beat a standing champion: a macro-F1 at least 0.002 higher, or a macro-F1 no more than 0.001 lower with a calibration error (`ece`) at least 0.005 lower. A first champion needs only its own gate; `force: true` skips both checks. Promoting the current champion answers `200` with `promoted: false`. `companions` promote other specialists of the same release in the same transaction, every one or none: the first refusal is the answer and nothing changes.

## Request

| Name | Where | Required | Meaning |
|---|---|---|---|
| `Authorization` | header | yes | `Bearer` and a token with `submit`. |
| `model` | path | yes | A specialist's id, e.g. `laya-link-scorer`. |
| `version_id` | body | yes | The registered version to make the champion. |
| `force` | body | no | `true` promotes without the two checks, the companions too; `false` by default. |
| `companions` | body | no | A list of `{"model", "version_id"}`: other specialists, each named once and never the path's own, promoted by the same rules. |

## Return value

**200 OK** with the promotion:

| Field | Meaning |
|---|---|
| `object` | `model.promotion`. |
| `model`, `version_id` | What was promoted. |
| `promoted` | `false` when the version already was the champion: nothing changed, and `id`, `replaced_version_id`, `forced` and `gate` are left out. |
| `serving_status` | `bundle_ready` when the version has a bundle or an artifact reference, else `metadata_only`. |
| `id` | The promotion's receipt number. |
| `replaced_version_id` | The champion it replaced, now `previous`; `null` for a first champion. |
| `forced` | Whether `force` was sent. |
| `gate` | The figures compared: `candidate`, `champion`, `thresholds`, `passed`, `forced`, and `rule`: `first_champion`, `macro_f1_gain`, `ece_gain_at_held_macro_f1`, or `null` when only `force` carried it. |
| `aliases` | `champion`, `challenger` and `previous` after the call. |
| `registry` | One outcome per MLflow trace destination: `sink_id` and `ok`; a failed sync changes neither the status nor the promotion. |
| `companions` | When you sent `companions`: each one's promotion in this shape, in the order sent. |

## Errors

| Status | Code | When it happens | What to do |
|---|---|---|---|
| `400` | `invalid_version`, `invalid_body`, `invalid_json` | A field is unknown, missing or malformed (`field` and `expected` say which), or the body is no JSON object. | Fix the request. |
| `401` | `unauthorized`, `invalid_token`, `token_revoked`, `token_expired` | No token, or one that does not work (any more). | Use a valid token. |
| `403` | `scope_required`, `account_suspended` | The token lacks `submit`, or the account is suspended. | Use a token with `submit`. |
| `404` | `model_not_versioned`, `version_not_found` | The path's model or a companion's is not a specialist, or a named version is not registered; the body names the `model`. | Register the version first. |
| `409` | `promotion_refused` | Without `force`: `reason` is `gate_not_passed` or `not_better_than_champion`, and `gate` holds the figures. Nothing changed, for any companion either. | Register a better version, or send `force: true` when you mean it. |
| `413` | `body_too_large` | The body is over `limit_bytes`. | Send a smaller body. |
| `429` | `rate_limited` | The token sends work faster than its request rate. | Wait the `Retry-After` seconds and send again. |

## Examples

With `laya-link-scorer` in place of `MODEL`, a first champion:

```sh
curl -s https://weights.fyi/run/v1/models/MODEL/promote -H "Authorization: Bearer $WEIGHTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"version_id": "2026-11-02.1", "force": false}'
```

```json
{
  "object": "model.promotion",
  "model": "laya-link-scorer",
  "version_id": "2026-11-02.1",
  "promoted": true,
  "serving_status": "metadata_only",
  "id": 17,
  "replaced_version_id": null,
  "forced": false,
  "gate": {
    "candidate": {"macro_f1": 0.912, "ece": 0.031, "gate_passed": true},
    "thresholds": {"gain_macro_f1": 0.002, "hold_macro_f1": 0.001, "gain_ece": 0.005},
    "champion": null, "passed": true, "rule": "first_champion", "forced": false
  },
  "aliases": {"champion": "2026-11-02.1", "challenger": null, "previous": null},
  "registry": []
}
```

## History

- 2026-10-20: built.
- 2026-11-16: this page added.

## See also

- [POST /v1/models/{model}/aliases](/run/docs/reference/models-aliases.md), to undo a promotion.
- [GET /v1/models/{model}/versions](/run/docs/reference/models-versions-list.md), your versions and the aliases.
- [POST /v1/models/{model}/versions](/run/docs/reference/models-versions-create.md), to register a version.
