---
title: "Update Workspace Agent"
method: PATCH
path: "/api/platform/v1/agents/{id}"
tags: ["workflows"]
---

# Update Workspace Agent

`PATCH /api/platform/v1/agents/{id}`

## Request

- Base URL: `https://docs.amdahl.ai`
- URL: `https://docs.amdahl.ai/api/platform/v1/agents/{id}`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Revise a tenant-authored agent's name, description, or prompt in place, keeping its slug stable. Call when refining how a saved agent behaves after seeing its output. Amdahl library agents are code-defined and immutable, so edits targeting one are refused with a locked error rather than silently ignored.

## Path parameters

- `id` string, required: UUID or slug of the agent to patch.

## Request body

- object
  - `name` string: New display name.
  - `description` string: New directory blurb.
  - `prompt` string: New prompt body.
  - `tool_blocklist` string[]: Operation ids to subtract from this agent tool kit at run time (all kit tools are on by default; empty list = no restriction). Runner-inline tools are refused.

## Response `200`

OK

- object
  - `data` unknown

## Other responses

- `400`: Invalid input - failed schema validation
- `401`: Authentication required
- `403`: Forbidden - missing scope or role
- `404`: Not found
- `500`: Internal server error

---

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