---
title: "Apply Deployment Provider Migration"
method: POST
path: "/api/v1/hosted-providers/migration"
tags: ["hosted-providers"]
---

# Apply Deployment Provider Migration

`POST /api/v1/hosted-providers/migration`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Otari-Key`
  - API key in header `x-api-key`

Move the deployment providers the retired dashboard page stored onto hosted providers of the same name.

Each is created as a hosted provider that serves models not on its roster,
offering what it lists as a create does, and the deployment provider is
removed. One that cannot move is reported and left in place. ``rows``
limits the move to the rows of the preview the caller reviewed, at the
versions it was shown them.

## Request body

- DeploymentProviderMigrationRequest: Which deployment providers to move: the ones the caller reviewed, as reviewed. ``rows`` names the rows of the preview the caller saw, each with the ``updated_at`` it was shown at. A row the preview did not show, or one changed since, is left where it is, so nothing moves that nobody reviewed. Omitted, every row that can move does.
  - `rows` DeploymentProviderMigrationReviewedRow[], nullable
    - `instance` string, required
    - `updated_at` string, date-time, nullable

## Response `200`

Successful Response

- DeploymentProviderMigrationPublic: The deployment providers the retired dashboard page stored, and how each moves onto a hosted provider.
  - `rows` DeploymentProviderMigrationRowPublic[], required
    - `api_base` string, nullable
    - `detail` string, nullable
    - `instance` string, required
    - `models` integer, nullable
    - `notes` string[]
    - `outcome` 'migrate' | 'migrated' | 'conflict' | 'unreadable' | 'invalid' | 'failed', required
    - `provider` string, nullable
    - `source_removed` boolean
    - `updated_at` string, date-time, nullable: The deployment provider's version, which an apply names to move this row as shown.

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-19** `3d8fba047d0e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mozilla-ai/apis/otari/changes/api/v1/hosted-providers/migration/post.md)

---

[API](https://skmtc.dev/mozilla-ai/apis/otari.md) · [All operations](https://skmtc.dev/mozilla-ai/apis/otari/llms.txt) · [OpenAPI document](https://skmtc.dev/mozilla-ai/apis/otari/revisions/56a84a2d9087?raw)
