---
title: "Migrate Price Fields"
method: POST
path: "/v1/admin/migrate-price-fields"
tags: ["Admin Management"]
---

# Migrate Price Fields

`POST /v1/admin/migrate-price-fields`

## Request

- Base URL: `https://api.oneinfer.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.oneinfer.ai/v1/admin/migrate-price-fields`
- Auth: HTTP bearer

Endpoint to migrate data from price_per_per_million_tokens to price_per_million_tokens

This endpoint runs a migration in the background to update all documents
with the old field name to use the new field name, without losing data.

## Response `200`

Successful Response

- MigrationResponse
  - `status` string, required
  - `message` string, required
  - `modified_count` integer, nullable

---

[API](https://skmtc.dev/oneinfer/apis/oneinfer-apis.md) · [All operations](https://skmtc.dev/oneinfer/apis/oneinfer-apis/llms.txt) · [OpenAPI document](https://skmtc.dev/oneinfer/apis/oneinfer-apis/revisions/a49f22311a8f?raw)
