---
title: "Update Search Provider"
method: PUT
path: "/search-providers/{integration_id}"
---

# Update Search Provider

`PUT /search-providers/{integration_id}`

Update an existing search provider integration.

## Path parameters

- `integration_id` string, required

## Request body

- SearchProviderConfig — Configuration for a single search provider integration.
  - `integration_id` string, nullable — Integration UUID
  - `integration_name` string, required — User-friendly name
  - `provider` string, required — LiteLLM provider key (tavily, serper, etc.)
  - `search_model` string, required — LiteLLM model key for cost lookup (tavily/search, etc.)
  - `encrypted_api_key` string, nullable — Encrypted API key from DB (null for free providers)
  - `api_key` string, nullable — Plaintext API key for create/update requests (null to keep unchanged)
  - `base_url` string, nullable — Custom endpoint URL for LiteLLM Proxy
  - `is_default` boolean — Whether this is the org default search provider
  - `cost_per_query` number, nullable — Cost per query from litellm.model_cost

## Response `200`

Successful Response

- SearchProviderConfig — Configuration for a single search provider integration.
  - `integration_id` string, nullable — Integration UUID
  - `integration_name` string, required — User-friendly name
  - `provider` string, required — LiteLLM provider key (tavily, serper, etc.)
  - `search_model` string, required — LiteLLM model key for cost lookup (tavily/search, etc.)
  - `encrypted_api_key` string, nullable — Encrypted API key from DB (null for free providers)
  - `api_key` string, nullable — Plaintext API key for create/update requests (null to keep unchanged)
  - `base_url` string, nullable — Custom endpoint URL for LiteLLM Proxy
  - `is_default` boolean — Whether this is the org default search provider
  - `cost_per_query` number, nullable — Cost per query from litellm.model_cost

## Other responses

- `422` — Validation Error

---

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