---
title: "Update Thread Web Search State"
method: PATCH
path: "/api/chat/threads/{thread_id}/web-search"
tags: ["chat", "chat"]
---

# Update Thread Web Search State

`PATCH /api/chat/threads/{thread_id}/web-search`

## Request

- Base URL: `https://marketcrew.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://marketcrew.ai/api/chat/threads/{thread_id}/web-search`
- Auth: HTTP bearer

Update web search state for a thread

## Path parameters

- `thread_id` string, required

## Request body

- WebSearchStateRequest: Request model for updating web search state
  - `web_search_enabled` boolean, required: Enable or disable web search for thread

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/marketcrew/apis/cappilot.md) · [All operations](https://skmtc.dev/marketcrew/apis/cappilot/llms.txt) · [OpenAPI document](https://skmtc.dev/marketcrew/apis/cappilot/revisions/7036e9c74d40?raw)
