---
title: "Toggle Build Mode"
method: PATCH
path: "/api/agents/{agent_id}/build-mode"
tags: ["agents"]
---

# Toggle Build Mode

`PATCH /api/agents/{agent_id}/build-mode`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/agents/{agent_id}/build-mode`
- Auth: HTTP bearer

Toggle build mode on/off for an active agent.

Regenerates workspace files (SOUL.md, AGENTS.md, HEARTBEAT.md, openclaw.json)
with build-mode templates and forces Opus as the primary model.

## Path parameters

- `agent_id` string, uuid, required

## Request body

- BuildModeRequest
  - `enabled` boolean, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
