---
title: "Patch Agent Llm Connection"
method: PATCH
path: "/agents/connections/llm/{connection_id}"
tags: ["Agents"]
---

# Patch Agent Llm Connection

`PATCH /agents/connections/llm/{connection_id}`

Partial-update one LLM connection by id.

``apiKey: "********"`` (or partial ``sk-a****xyz``) -> no-op on that
field. ``apiKey: null`` -> clear. Other fields merge over the existing
row, then the merged row re-validates against ``AgentLlmConnection``.
Returns the masked persisted shape.

## Path parameters

- `connection_id` string, required

## Request body

- object

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/streamkap/apis/streamkap-rest-api.md) · [All operations](https://skmtc.net/streamkap/apis/streamkap-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/streamkap/streamkap-rest-api/versions/8aea6143d003/schema)
