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

# Patch Provider Config

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

Partially update a provider configuration.

## 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

> 20 revisions in range; 1 not diffed, 4 could not be searched.

- **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` — 1 info
  - endpoint added
- **2026-03-30** `e9c153221160` — 1 breaking
  - api removed without deprecation

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/provider-configs/:config_id/patch.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/42240c74704e/schema)
