---
title: "Update Workspace Connector Settings"
method: PATCH
path: "/api/v1/workspace-connectors/{connector_id}"
tags: ["workspace-connectors"]
---

# Update Workspace Connector Settings

`PATCH /api/v1/workspace-connectors/{connector_id}`

## Request

- Base URL: `https://memory.kagura-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://memory.kagura-ai.com/api/v1/workspace-connectors/{connector_id}`
- Auth: none declared

PATCH connector vend settings (#1376): channel_ids / LLM binding / locale.

Repairs connectors born un-vendable (the create endpoint was previously
the only writer of these columns). True PATCH semantics — absent fields
are untouched, explicit ``null`` clears — with the runtime PATCH's
``expected_config_version`` optimistic lock (409 on staleness).

## Path parameters

- `connector_id` string, uuid, required

## Headers

- `authorization` string, nullable

## Request body

- WorkspaceConnectorSettingsUpdateRequest: PATCH body for connector vend settings (#1376). True PATCH semantics: fields absent from the request are untouched; an explicit ``null`` clears. The route forwards ``exclude_unset`` fields to the service sentinel, so every default below is just the "absent" marker. ``extra="forbid"`` because a silently-dropped typo'd field name would read as a successful partial update (#1376 review).
  - `channel_ids` string[], nullable: Ingest channel selection; non-empty list of channel ids, or null to clear
  - `litellm_virtual_key_id` string, nullable
  - `llm_config` object, nullable: Write-only BYO LLM bundle; stored Fernet-encrypted, never returned (a presence flag is). Null clears.
  - `locale` string, nullable: Worker pre-compile locale. Must map to the worker Locale contract ('en' | 'ja'); common BCP-47 forms are normalized (ja-JP → ja). Null clears (#1377).
  - `context_id` string, uuid, nullable: Re-point the write-target context (#1428). Must be a live context in this workspace; null clears the binding (no write target).
  - `expected_config_version` integer, nullable

## Response `200`

Successful Response

- WorkspaceConnectorSettingsUpdateResponse: Post-update settings. The LLM bundle itself is never echoed.
  - `connector_id` string, uuid, required
  - `channel_ids` unknown[], nullable, required
    - unknown
  - `litellm_virtual_key_id` string, nullable, required
  - `llm_config_present` boolean, required
  - `locale` string, nullable, required
  - `config_version` integer, required
  - `context_id` string, uuid, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud.md) · [All operations](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/revisions/09f17f5ada29?raw)
