cURL
curl --request POST \ --url http://localhost:6060/api/agent-server/prompts/{name}/versions \ --header 'Content-Type: application/json' \ --data ' { "template": "<string>", "commit_message": "<string>", "label": "production" } '
{ "error": true, "message": "<string>", "data": { "name": "<string>", "version": 123, "template": "<string>", "label": "<string>", "commit_message": "<string>", "created_at": "2023-11-07T05:31:56Z" }, "status": 123, "errorDetails": {} }
production
latest
Prompt version created successfully
Show child attributes