---
title: "Update Llm Profile"
method: PATCH
path: "/api/v1/runtime/llm-profiles/{profile_id}"
tags: ["runtime"]
---

# Update Llm Profile

`PATCH /api/v1/runtime/llm-profiles/{profile_id}`

## Path parameters

- `profile_id` string, uuid, required — Provider profile identifier.

## Request body

- LlmProviderProfileUpdateRequest
  - `name` string, nullable — Updated profile label.
  - `provider_type` 'openai' | 'anthropic' | 'google' | 'openai_compatible' | 'litellm_proxy' | 'anthropic_compatible', nullable — Updated provider type.
  - `api_base` string, nullable — Updated API base URL.
  - `api_key` string, nullable — Replacement API key when rotating credentials.
  - `clear_api_key` boolean — When true, remove the stored API key.
  - `metadata_json` object, nullable — Replacement metadata payload.

## Response `200`

Successful Response

- LlmProviderProfileResponse
  - `id` string, uuid, required — Stable provider profile identifier.
  - `name` string, required — Human-readable profile label shown in Settings.
  - `provider_type` 'openai' | 'anthropic' | 'google' | 'openai_compatible' | 'litellm_proxy' | 'anthropic_compatible', required — Provider integration type.
  - `api_base` string — Configured API base URL for the provider.
  - `api_key_masked` string — Masked API key preview for display.
  - `has_api_key` boolean — Whether a stored API key is configured.
  - `metadata_json` object — Optional provider-specific metadata.

## Other responses

- `401` — Authentication is required or the provided token is invalid.
- `403` — LLM profile writes require local mode or admitted Neon authentication.
- `404` — Requested profile was not found.
- `422` — Validation Error
- `503` — Runtime services are unavailable because server startup is incomplete.

## Changes

- **2026-06-25** `e25aaded81b9` — 2 warning, 3 info
  - added the new `anthropic_compatible` enum value to the `provider_type` response property for the response status `200`
  - added the new `litellm_proxy` enum value to the `provider_type` response property for the response status `200`
  - the endpoint scheme security `HTTPBearer` was added to the API
  - added the new `anthropic_compatible` enum value to the request property `provider_type/anyOf[subschema #1]/`
  - …1 more
- **2026-06-11** `a5fae746ceab` — 1 info
  - endpoint added
- **2026-03-19** `78507b29ed8f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/qredence/apis/fleet-rlm/changes/api/v1/runtime/llm-profiles/:profile_id/patch.md)

---

[API](https://skmtc.dev/qredence/apis/fleet-rlm.md) · [All operations](https://skmtc.dev/qredence/apis/fleet-rlm/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/qredence/fleet-rlm/revisions/e25aaded81b9/schema)
