---
title: "Update routing weights"
method: PUT
path: "/api/v1/llm-providers/routing"
tags: ["LLM Providers"]
---

# Update routing weights

`PUT /api/v1/llm-providers/routing`

## Request

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

Update LLM provider routing weights.
Weights are integers representing relative priority.

## Request body

- UpdateLLMRoutingRequest
  - `weights` object, required: Provider name to weight mapping

## Response `200`

Routing weights updated

- LLMRoutingConfigResponse
  - `weights` object: Provider name to weight mapping

## Other responses

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

---

[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)
