---
title: "Update Playground Agent"
method: POST
path: "/evals/agents/{agent_name}/update"
tags: ["EVALS"]
---

# Update Playground Agent

`POST /evals/agents/{agent_name}/update`

Update an agent's configuration in Langfuse.

Updates the agent's prompt and config (description, model, etc.).
Creates a new version of the agent in Langfuse.

Returns the updated agent details.

## Path parameters

- `agent_name` string, required

## Request body

- UpdateAgentConfigRequest — Request for POST /evals/agents/{agent_name}/update endpoint
  - `name` string, required
  - `prompt` string, required
  - `config` object, required

## Response `200`

Successful Response

- PlaygroundAgentInfo — Response for GET /evals/agents/{agent_name} endpoint
  - `agent_name` string, required
  - `description` string, required
  - `model` string, required
  - `version` integer, required
  - `all_versions` integer[], required
  - `prompt` string, required
  - `labels` string[], required
  - `tags` string[], required
  - `config` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/aab3fe5c9f05/schema)
