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

# Update Agent

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

> **Deprecated.**

## Path parameters

- `agent_id` string, uuid, required

## Request body

- JsonPatchOp[] — A JSON Patch document per RFC 6902 — a JSON array of patch operations.
  - `from` string, nullable
  - `op` 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test', required
  - `path` string, required
  - `value` unknown

## Response `200`

Successful Response

- WebSearchAgentResponsePublicV1
  - `agent_name` string, nullable — Stable agent name.
  - `created_at` string, date-time, required — When the agent was created.
  - `description` string, required — Agent description shown to users.
  - `display_name` string, required — Human-friendly agent name shown to users.
  - `domain_expertise` string, required — Domain expertise or operating context for the agent.
  - `effort` 'low' | 'medium' | 'high' | 'x-high' | 'max', required — Canonical effort tier names for the research graph.
  - `goals` WebSearchAgentGoalResponsePublicV1[], required — Ordered goals for the agent to follow.
    - `goal` string, required — Goal text.
    - `id` string, required — Unique goal identifier (wsag_<uuid>).
    - `order` integer, required — Zero-based goal position.
  - `icon` string, required — Icon identifier used when presenting the agent.
  - `id` string, required — Unique web search agent identifier (wsa_<uuid>).
  - `is_active` boolean, required — Whether the agent can be used to start new runs.
  - `output_schema` object, nullable, required — JSON schema describing the structured output the agent should produce.
  - `sources` AgentSourcesResponsePublicV1, required
    - `allow` WebSearchAgentSourceResponsePublicV1[] — Source groups the agent is allowed to use.
      - `domains` string[], required — Domains included in this source group.
      - `id` string, required — Unique source group identifier (wsas_<uuid>).
      - `order` integer, required — Zero-based source group position.
      - `title` string, required — Source group title.
    - `avoid` string, nullable — Free-text guidance describing sources or domains to avoid.
    - `block` WebSearchAgentSourceResponsePublicV1[] — Source groups the agent should not use.
      - `domains` string[], required — Domains included in this source group.
      - `id` string, required — Unique source group identifier (wsas_<uuid>).
      - `order` integer, required — Zero-based source group position.
      - `title` string, required — Source group title.
    - `prioritize` string, nullable — Free-text guidance describing sources or domains to prioritize.
  - `suggested_questions` WebSearchAgentSuggestedQuestionResponsePublicV1[], required — Suggested prompts users can run with this agent.
    - `id` string, required — Unique suggested question identifier (wsasq_<uuid>).
    - `order` integer, required — Zero-based suggested question position.
    - `question` string, required — Suggested prompt text.
  - `updated_at` string, date-time, required — When the agent was last updated.
  - `use_case` 'research' | 'enrichment' | 'dataset_building', required

## Other responses

- `422` — Validation Error

---

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