---
title: "Update Template"
method: PATCH
path: "/v1/task-agents/templates/{template_name}"
tags: ["Web Search Agent Templates (public)"]
---

# Update Template

`PATCH /v1/task-agents/templates/{template_name}`

## Path parameters

- `template_name` string, 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

- WebSearchAgentTemplateResponse
  - `created_at` string, date-time, required
  - `description` string, required
  - `display_name` string, required
  - `domain_expertise` string, required
  - `effort` 'low' | 'medium' | 'high' | 'x-high' | 'max', required — Canonical effort tier names for the research graph.
  - `goals` WebSearchAgentGoalResponse[], required
    - `goal` string, required
    - `id` string, required
    - `order` integer, required
  - `icon` string, required
  - `id` string, required
  - `output_schema` object, nullable, required
  - `sources` WebSearchAgentSourceResponse[], required
    - `domains` string[], required
    - `id` string, required
    - `order` integer, required
    - `title` string, required
  - `suggested_questions` WebSearchAgentSuggestedQuestionResponse[], required
    - `id` string, required
    - `order` integer, required
    - `question` string, required
  - `template_name` string, required
  - `updated_at` string, date-time, required
  - `use_case` 'research' | 'enrichment' | 'dataset_building', required

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-12** `e8a97dc9fce2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/nimbleway/apis/api-gateway/changes/v1/task-agents/templates/:template_name/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/e8a97dc9fce2/schema)
