---
title: "Update Provider Config"
method: PUT
path: "/v1/provider-configs/{config_id}"
tags: ["v1", "protected", "provider-configs"]
---

# Update Provider Config

`PUT /v1/provider-configs/{config_id}`

Update a provider configuration (full replace via PUT).

## Path parameters

- `config_id` string, uuid, required

## Request body

- ProviderConfigUpdate — Patch payload for an existing provider configuration. Unset = unchanged.
  - `api_key` string, nullable — New API key. Replaces the previously stored secret. Send an empty string to clear the key for keyless custom endpoints.
  - `api_key_secret_id` string, uuid, nullable — Point this configuration at an existing workspace secret instead. Mutually exclusive with api_key.
  - `description` string, nullable — New description for the configuration.
  - `endpoint_url` string, nullable — New endpoint URL, or empty string to clear.
  - `is_active` boolean, nullable — Activate or deactivate the configuration.
  - `is_public` boolean, nullable — Toggle workspace-wide visibility.
  - `name` string, nullable — New human-readable label for the configuration.

## Response `200`

Successful Response

- ProviderConfigResponse
  - `created_at` string, required
  - `created_by` string, required
  - `endpoint_url` string, nullable, required
  - `id` string, required
  - `is_active` boolean, required
  - `is_public` boolean, required
  - `model_instance_ids` string[]
  - `name` string, required
  - `provider_spec_id` string, required
  - `provider_spec_key` string, nullable
  - `provider_spec_name` string, nullable
  - `updated_at` string, required
  - `workspace_id` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-30** `42240c74704e` — 1 info
  - added the new optional request property `api_key_secret_id`
- **2026-07-08** `8940d7f77282` — 2 breaking
  - the `created_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - the `updated_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
- **2026-06-18** `dad98bb65260` — 1 info
  - the `api_key/anyOf[subschema #1]/` request property's minLength was decreased from `1` to `0`
- **2026-04-29** `e1a530c0a2d5` — 2 breaking, 1 warning, 2 info
  - the `api_key/anyOf[subschema #1]/` request property's minLength was increased from `0` to `1`
  - the `name/anyOf[subschema #1]/` request property's minLength was increased from `0` to `1`
  - the `name/anyOf[subschema #1]/` request property's maxLength was set to `255`
  - added the new optional request property `description`
  - …1 more
- **2026-03-30** `e9c153221160` — 2 warning, 1 info
  - removed the request property `description`
  - removed the request property `is_public`
  - the `name/anyOf[subschema #1]/` request property's minLength was decreased from `1` to `0`

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/provider-configs/:config_id/put.md)

---

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