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

# Create Or Update Agent

`POST /studio/agents`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/studio/agents`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

> **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` AgentConfig, 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.dev/myaltimate/apis/myaltimate-api.md) - [All operations](https://skmtc.dev/myaltimate/apis/myaltimate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/myaltimate-api/revisions/727657ce54e9?raw)
