v5

latestOpenAPI 3.1.02026-08-081,0211,3082.1 MB
AI_STUDIO

Create Or Update Agent

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
post/studio/agents

Request body

namestring required
promptstring required

Response

Successful Response

namestring required
versioninteger required
statusstring required