---
title: "Update Model Price"
method: PUT
path: "/api/v1/model-price-map/{id}"
tags: ["model-price-map"]
---

# Update Model Price

`PUT /api/v1/model-price-map/{id}`

## Path parameters

- `id` string, uuid, required

## Request body

- ModelPriceMapUpdateSchema — Model price map update schema.
  - `name` string, required
  - `start_time` string, date-time, nullable
  - `match_path` string[]
  - `match_pattern` string, required
  - `prompt_cost` union, required
    - number
    - string
  - `completion_cost` union, required
    - number
    - string
  - `prompt_cost_details` object, nullable
  - `completion_cost_details` object, nullable
  - `provider` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.net/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/revisions/a0acb3a6a101/schema)
