curl --request POST \
--url https://api.arize.com/v2/evaluators/{evaluator_id}/versions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"commit_message": "Improve template wording",
"template_config": {
"name": "hallucination",
"template": "Evaluate whether the output is factually grounded.\n\nInput: {input}\nOutput: {output}",
"include_explanations": true,
"use_function_calling_if_available": true,
"classification_choices": {
"hallucinated": 0,
"factual": 1
},
"direction": "maximize",
"data_granularity": "span",
"llm_config": {
"ai_integration_id": "TGxtSW50ZWdyYXRpb246MTI6YUJjRA==",
"model_name": "gpt-4o",
"invocation_parameters": {
"temperature": 0
},
"provider_parameters": {}
}
}
}
'{
"id": "RXZhbHVhdG9yVmVyc2lvbjoxMTpBYkNk",
"evaluator_id": "RXZhbHVhdG9yOjEyOmFCY0Q=",
"commit_hash": "b4c2d0e5f8a3b1629f7d4cc0328g98e2d5f921g3",
"commit_message": "Improve template wording",
"type": "template",
"template_config": {
"name": "hallucination",
"template": "Evaluate whether the output is factually grounded...",
"include_explanations": true,
"use_function_calling_if_available": true,
"classification_choices": {
"hallucinated": 0,
"factual": 1
},
"direction": "maximize",
"data_granularity": "span",
"llm_config": {
"ai_integration_id": "TGxtSW50ZWdyYXRpb246MTI6YUJjRA==",
"model_name": "gpt-4o",
"invocation_parameters": {
"temperature": 0
},
"provider_parameters": {}
}
},
"created_at": "2026-02-17T10:30:00.000Z",
"created_by_user_id": "VXNlcjoxOm5OYkM="
}Create a new version of an existing evaluator. The new version becomes the latest version immediately (versioning is append-only).
Payload Requirements
commit_message describes the changes in this version.template_config or code_config to match the evaluator’s type.
code_config.type is a separate inner discriminator (managed or custom) and is unrelated to the top-level type.
Schema and constraints match Create Evaluator.Valid example (template version)
{
"commit_message": "Improve prompt template for better accuracy",
"template_config": {
"name": "hallucination",
"template": "Given the input: {input}\nand output: {output}\nIs the output a hallucination? Explain your reasoning.",
"include_explanations": true,
"use_function_calling_if_available": true,
"classification_choices": {"hallucinated": 0, "factual": 1},
"llm_config": {
"ai_integration_id": "TGxtSW50ZWdyYXRpb246MTI6YUJjRA==",
"model_name": "gpt-4o",
"invocation_parameters": {"temperature": 0},
"provider_parameters": {}
}
}
}
Invalid example (missing required commit_message)
{
"template_config": {
"name": "hallucination",
"template": "Is this a hallucination?",
"include_explanations": false,
"use_function_calling_if_available": false,
"llm_config": {
"ai_integration_id": "TGxtSW50ZWdyYXRpb246MTI6YUJjRA==",
"model_name": "gpt-4o",
"invocation_parameters": {},
"provider_parameters": {}
}
}
}
curl --request POST \
--url https://api.arize.com/v2/evaluators/{evaluator_id}/versions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"commit_message": "Improve template wording",
"template_config": {
"name": "hallucination",
"template": "Evaluate whether the output is factually grounded.\n\nInput: {input}\nOutput: {output}",
"include_explanations": true,
"use_function_calling_if_available": true,
"classification_choices": {
"hallucinated": 0,
"factual": 1
},
"direction": "maximize",
"data_granularity": "span",
"llm_config": {
"ai_integration_id": "TGxtSW50ZWdyYXRpb246MTI6YUJjRA==",
"model_name": "gpt-4o",
"invocation_parameters": {
"temperature": 0
},
"provider_parameters": {}
}
}
}
'{
"id": "RXZhbHVhdG9yVmVyc2lvbjoxMTpBYkNk",
"evaluator_id": "RXZhbHVhdG9yOjEyOmFCY0Q=",
"commit_hash": "b4c2d0e5f8a3b1629f7d4cc0328g98e2d5f921g3",
"commit_message": "Improve template wording",
"type": "template",
"template_config": {
"name": "hallucination",
"template": "Evaluate whether the output is factually grounded...",
"include_explanations": true,
"use_function_calling_if_available": true,
"classification_choices": {
"hallucinated": 0,
"factual": 1
},
"direction": "maximize",
"data_granularity": "span",
"llm_config": {
"ai_integration_id": "TGxtSW50ZWdyYXRpb246MTI6YUJjRA==",
"model_name": "gpt-4o",
"invocation_parameters": {
"temperature": 0
},
"provider_parameters": {}
}
},
"created_at": "2026-02-17T10:30:00.000Z",
"created_by_user_id": "VXNlcjoxOm5OYkM="
}Documentation Index
Fetch the complete documentation index at: https://arize-ax.mintlify.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Most Arize AI endpoints require authentication. For those endpoints that require authentication, include your API key in the request header using the format
The evaluator global ID (base64) A universally unique identifier
"RW50aXR5OjEyMzQ1"
Body containing evaluator version creation parameters
Payload for an evaluator version: exactly one of template_config or code_config.
Used both when creating an evaluator (initial version) and when appending a version.
Returns the created evaluator version
A versioned snapshot of an evaluator's configuration. Exactly one of
template_config or code_config is present. The type field discriminates
the branch and matches the parent evaluator's type.
The unique identifier for this version
The parent evaluator ID
A unique hash identifying this version
A message describing the changes in this version
When this version was created
The unique identifier for the user who created this version
Evaluator version type. Must be template for template evaluator versions; must match the parent evaluator's type.
template The LLM template configuration for this version
Show child attributes
Was this page helpful?
Suggestions