Skip to main content
PUT
/
template-version
/
{versionId}
Update template version
curl --request PUT \
  --url https://api.promptmetrics.dev/template-version/{versionId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

versionId
string
required

Body

application/json
workspace_id
string
labels
string[]
env_label
enum<string>
Available options:
development,
staging,
production
model_id
string | null
api_type
enum<string>
Available options:
chat.completion,
response
parameters
object
version_name
string | null
metadata
object
display_mode
enum<number>
Available options:
0,
1
messages
object[]
Minimum array length: 1

Response

Template version updated successfully