---
title: "Update LLM Provider's ApiKey"
method: PATCH
path: "/v1/private/llm-provider-key/{id}"
tags: ["LlmProviderKey"]
---

# Update LLM Provider's ApiKey

`PATCH /v1/private/llm-provider-key/{id}`

Update LLM Provider's ApiKey

## Path parameters

- `id` string, uuid, required

## Request body

- ProviderApiKeyUpdate
  - `api_key` string
  - `name` string
  - `provider_name` string — Provider name - can be set to migrate legacy custom LLM or Bedrock providers to the new multi-provider format. Once set, it cannot be changed. Should only be set for custom LLM and Bedrock providers.
  - `headers` object
  - `configuration` object
  - `base_url` string

## Response `204`

No Content

## Other responses

- `401` — Bad Request
- `403` — Access forbidden
- `404` — Not found

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/versions/4ed2fbc97cc3/schema)
