---
title: "Update LLM provider"
method: PUT
path: "/api/v1/llm-providers/{name}"
tags: ["LLM Providers"]
---

# Update LLM provider

`PUT /api/v1/llm-providers/{name}`

## Request

- Base URL: `https://orchestrator.getaxonflow.com`
- URL: `https://orchestrator.getaxonflow.com/api/v1/llm-providers/{name}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/docs/api/v1/llm-providers/:name/put.ts> (a function with typed inputs; its response is checked against the schema)

Update an existing LLM provider configuration.
Only provided fields are updated (partial update).

## Path parameters

- `name` string, required

## Request body

- UpdateLLMProviderRequest: Partial update - only provided fields are updated
  - `api_key` string
  - `api_key_secret_arn` string
  - `endpoint` string
  - `model` string
  - `region` string
  - `enabled` boolean
  - `priority` integer
  - `weight` integer
  - `rate_limit` integer
  - `timeout_seconds` integer
  - `settings` object

## Response `200`

Provider updated

- LLMProviderResponse
  - `provider` LLMProviderResource: LLM provider configuration
    - `name` string: Unique provider name
    - `type` 'openai' | 'azure-openai' | 'anthropic' | 'bedrock' | 'ollama' | 'gemini' | 'custom': Provider type
    - `endpoint` string: API endpoint URL
    - `model` string: Default model name
    - `region` string: AWS region (for Bedrock)
    - `enabled` boolean: Whether provider is enabled
    - `priority` integer: Routing priority (lower = higher priority)
    - `weight` integer: Routing weight for load balancing
    - `rate_limit` integer: Max requests per second
    - `timeout_seconds` integer: Request timeout in seconds
    - `has_api_key` boolean: Whether API key is configured (key not exposed)
    - `settings` object: Provider-specific settings
    - `health` LLMProviderHealthInfo: Provider health status
      - `status` 'healthy' | 'unhealthy' | 'unknown'
      - `message` string: Health check message
      - `last_checked` string, date-time: Last health check timestamp

## Other responses

- `400`: Invalid request (coded envelope)
- `401`: Unauthorized - missing or invalid organization scope (coded envelope)
- `404`: Provider not found

---

[API](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api.md) - [All operations](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/revisions/f408ef3ec9dd?raw)
