---
title: "Create Or Update Agent"
method: POST
path: "/studio/agents"
tags: ["AI_STUDIO"]
deprecated: true
---

# Create Or Update Agent

`POST /studio/agents`

> **Deprecated.**

Create or update an agent definition in Langfuse.

Service user only (public tenant): this rewrites the system prompt driving
the Copilot for every tenant.

Note: We use create_prompt for both create and update because:
- create_prompt automatically creates a new version if the name exists
- update_prompt only modifies labels on existing versions, not content

## Request body

- CreateAgentRequest
  - `name` string, required
  - `prompt` string, required
  - `config` AppSchemasAiPlaygroundAiPlaygroundAgentConfig, required
    - `description` string, required
    - `tools` string[], nullable
    - `model` string, nullable
    - `agents` string[], nullable

## Response `200`

Successful Response

- CreateAgentResponse
  - `name` string, required
  - `version` integer, required
  - `status` string, required

## 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/50769cbf05d5/schema)
