---
title: "Resync Agent From Template"
method: POST
path: "/api/ai-agents/{agent_id}/resync-from-template"
tags: ["ai-agents", "ai-agents"]
---

# Resync Agent From Template

`POST /api/ai-agents/{agent_id}/resync-from-template`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/ai-agents/{agent_id}/resync-from-template`
- Auth: none declared

Explicit "Update from template": overwrite this fork's prompt_text with
its source template's CURRENT prompt_text.

Forks freeze at fork-time by design (spec §3.4 — operator-side fixes ship
as backfill migrations); this is the user-initiated on-demand pull.
prompt_text only — tool_config/execution_config are intentionally left
untouched. Recoverable via prompt history (agents_prompt_restore).

## Path parameters

- `agent_id` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/d84e7dc9977d?raw)
