AI_PLAYGROUND

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/playground/agents

Request body

namestring required
promptstring required

Response

Successful Response

namestring required
versioninteger required
statusstring required

Changes

No recorded changes to this endpoint across all 28 revisions of this API.