cURL
curl --request POST \ --url https://api.promptmetrics.dev/template-version \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "template_id": "<string>", "messages": [ { "role": "system", "content": "<string>", "variable": [ "<string>" ], "name": "<string>", "tool_call_id": "<string>", "tool_calls": "<array>" } ] } '
{ "responseData": { "data": { "_id": "<string>", "template_id": "<string>", "version": 123, "version_name": "<string>", "env_label": "<string>", "messages": [ { "role": "system", "content": "<string>", "variable": [ "<string>" ], "name": "<string>", "tool_call_id": "<string>", "tool_calls": "<array>" } ], "parameters": {}, "metadata": {}, "created_at": "2023-11-07T05:31:56Z" } } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
1
Show child attributes
f-string
jinja2
chat.completion
response
0
Template version created successfully