---
title: "Set Agent Mesh Backend"
method: PATCH
path: "/admin/mesh/agents/{agent_id}"
tags: ["admin"]
---

# Set Agent Mesh Backend

`PATCH /admin/mesh/agents/{agent_id}`

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/admin/mesh/agents/{agent_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Set the per-agent mesh backend for a single agent.

Body: {"mesh_backend": "nova" | "ang" | "shadow" | null}

- "nova": use Nova OS native /v1/ surface regardless of global setting
- "ang": use legacy ANG-compat endpoints regardless of global setting
- "shadow": use Nova OS as primary, fire local-flow comparison in background
- null: remove per-agent override (inherit global MESH_BACKEND)

Returns the updated effective backend.

## Path parameters

- `agent_id` string, uuid, required

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/meganova/apis/meganova-api.md) - [All operations](https://skmtc.dev/meganova/apis/meganova-api/llms.txt) - [OpenAPI document](https://skmtc.dev/meganova/apis/meganova-api/revisions/c683584f6060?raw)
