---
title: "Update Search Tool"
method: PUT
path: "/search_tools/{search_tool_id}"
tags: ["search_tools"]
---

# Update Search Tool

`PUT /search_tools/{search_tool_id}`

Update an existing search tool.

Example Request:
```bash
curl -X PUT "http://localhost:4000/search_tools/123e4567-e89b-12d3-a456-426614174000" \
    -H "Authorization: Bearer <your_api_key>" \
    -H "Content-Type: application/json" \
    -d '{
        "search_tool": {
            "search_tool_name": "updated-search",
            "litellm_params": {
                "search_provider": "perplexity",
                "api_key": "sk-new-key"
            },
            "search_tool_info": {
                "description": "Updated search tool"
            }
        }
    }'
```

Example Response:
```json
{
    "search_tool_id": "123e4567-e89b-12d3-a456-426614174000",
    "search_tool_name": "updated-search",
    "litellm_params": {
        "search_provider": "perplexity",
        "api_key": "sk-new-key"
    },
    "search_tool_info": {
        "description": "Updated search tool"
    },
    "created_at": "2023-11-09T12:34:56.789Z",
    "updated_at": "2023-11-09T13:45:12.345Z"
}
```

## Path parameters

- `search_tool_id` string, required

## Request body

- UpdateSearchToolRequest
  - `search_tool` SearchTool, required — Search tool configuration. Example: { "search_tool_id": "123e4567-e89b-12d3-a456-426614174000", "search_tool_name": "litellm-search", "litellm_params": { "search_provider": "perplexity", "api_key": "sk-..." }, "search_tool_info": { "description": "Perplexity search tool" } }
    - `created_at` string, nullable
    - `litellm_params` SearchToolLiteLLMParams, required — LiteLLM params for search tools configuration.
      - `api_base` string, nullable
      - `api_key` string, nullable
      - `max_retries` integer, nullable
      - `search_provider` string, required
      - `timeout` number, nullable
    - `search_tool_id` string, nullable
    - `search_tool_info` object, nullable
    - `search_tool_name` string, required
    - `updated_at` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/flock/apis/litellm-api.md) · [All operations](https://skmtc.net/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flock/litellm-api/revisions/8fbaab4fc7c5/schema)
