---
title: "POST /model-hub/eval-templates/create-v2/"
method: POST
path: "/model-hub/eval-templates/create-v2/"
tags: ["model-hub"]
---

# POST /model-hub/eval-templates/create-v2/

`POST /model-hub/eval-templates/create-v2/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/eval-templates/create-v2/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Create a single eval template with the revamped schema.
Supports the new scoring fields (pass_threshold, choice_scores, output_type_normalized).

## Request body

- EvalTemplateCreateV2Request
  - `name` string
  - `is_draft` boolean
  - `eval_type` 'llm' | 'code' | 'agent'
  - `instructions` string
  - `model` string
  - `output_type` 'pass_fail' | 'percentage' | 'deterministic'
  - `pass_threshold` number
  - `choice_scores` object, nullable
  - `description` string, nullable
  - `tags` string[]
  - `check_internet` boolean
  - `code` string, nullable
  - `code_language` 'python' | 'javascript', nullable
  - `messages` object[], nullable
  - `few_shot_examples` object[], nullable
  - `mode` 'auto' | 'agent' | 'quick', nullable
  - `tools` object, nullable
  - `knowledge_bases` string[], nullable
  - `data_injection` object, nullable
  - `summary` object, nullable
  - `error_localizer_enabled` boolean
  - `template_format` 'mustache' | 'jinja'

## Response `200`

OK

- EvalTemplateCreateResponse
  - `status` boolean, required
  - `result` EvalTemplateCreateResponseResult, required
    - `id` string, uuid, required
    - `name` string, required
    - `version` string, required

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
