---
title: "Update Llm Integration"
method: PUT
path: "/llm-providers/config/{integration_id}"
---

# Update Llm Integration

`PUT /llm-providers/config/{integration_id}`

Update an existing LLM provider integration.

## Path parameters

- `integration_id` string, required

## Request body

- LLMProviderUpdateRequest — PUT body. Stored rows are never re-validated against these rules; only request input is.
  - `integration_name` string, required — User-friendly name for this integration
  - `provider` string, required — LLM provider name (openai, anthropic, custom)
  - `api_key` string, nullable, required — API key for the provider (null to keep existing)
  - `model_name` string, required — Default model name for this integration
  - `base_url` string, nullable — Custom endpoint URL (required for 'custom' provider, null for cloud)

## Response `200`

Successful Response

- LLMIntegrationResponse — Response for LLM integration operations (CRUD and connection tests).
  - `message` string, required — Human-readable status message
  - `integration_id` string, nullable — Integration ID (present for create/update operations)
  - `status` 'success' | 'error', nullable — Operation status (for connection tests)
  - `provider` string, nullable — Provider name (for connection tests)
  - `models_available` string[], nullable — Available models (for connection tests)

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-30** `11d1e74d88c7` — 6 warning
  - removed the request property `input_cost_per_token`
  - removed the request property `integration_id`
  - removed the request property `is_default`
  - removed the request property `model_deprecated`
  - …2 more

[Change history](https://skmtc.dev/discolike/apis/discolike-api/changes/llm-providers/config/:integration_id/put.md)

---

[API](https://skmtc.dev/discolike/apis/discolike-api.md) · [All operations](https://skmtc.dev/discolike/apis/discolike-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/discolike/discolike-api/revisions/11d1e74d88c7/schema)
