---
title: "Update Web Search Agent"
method: PATCH
path: "/v1/task-agents/{agent_id}"
tags: ["Web Search Agents"]
---

# Update Web Search Agent

`PATCH /v1/task-agents/{agent_id}`

Apply a JSON Patch document (`application/json-patch+json`) to an agent you own. Each operation must be a `replace` with path `/field_name`.

## Path parameters

- `agent_id` string, required

## Cookies

- `token` string, nullable

## Response `200`

Successful Response

- AgentResponse
  - `account_id` string, nullable
  - `agent_name` string, nullable
  - `created_at` string, date-time, required
  - `description` string, required
  - `display_name` string, required
  - `domain_expertise` string, required
  - `effort` string, required
  - `goals` AgentGoalResponse[], required
    - `goal` string, required
    - `id` string, required
    - `order` integer, required
  - `icon` string, required
  - `id` string, required
  - `is_active` boolean, required
  - `output_schema` object, nullable, required
  - `sources` AgentSourcesResponse, required
    - `allow` AgentSourceResponse[]
      - `domains` string[], required
      - `id` string, required
      - `order` integer, required
      - `title` string, required
    - `avoid` string, nullable
    - `block` AgentSourceCreateRequest[]
      - `domains` string[], required
      - `order` integer
      - `title` string, required
    - `prioritize` string, nullable
  - `suggested_questions` AgentSuggestedQuestionResponse[], required
    - `id` string, required
    - `order` integer, required
    - `question` string, required
  - `updated_at` string, date-time, required
  - `use_case` 'research' | 'enrichment' | 'dataset_building', required
  - `workspace_id` string, uuid, nullable
  - `workspace_name` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-06-18** `2562e655b8f2` — 1 breaking, 4 info
  - the `sources` response's property type/format changed from `array`/`` to `object`/`` for status `200`
  - added the optional property `sources/allow` to the response with the `200` status
  - added the optional property `sources/avoid` to the response with the `200` status
  - added the optional property `sources/block` to the response with the `200` status
  - …1 more
- **2026-06-10** `421a9851d61b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/nimbleway/apis/api-gateway/changes/v1/task-agents/:agent_id/patch.md)

---

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