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

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

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

## Request

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

Create a composite eval from a list of existing eval template IDs.

## Request body

- CompositeEvalCreateRequest
  - `name` string, required
  - `description` string, nullable
  - `tags` string[]
  - `child_template_ids` string[], required
  - `aggregation_enabled` boolean
  - `aggregation_function` 'weighted_avg' | 'avg' | 'min' | 'max' | 'pass_rate'
  - `child_weights` object, nullable
  - `child_pinned_versions` object, nullable
  - `child_configs` object, nullable
  - `composite_child_axis` '' | 'pass_fail' | 'percentage' | 'choices' | 'code'

## Response `200`

OK

- CompositeEvalCreateResponse
  - `status` boolean, required
  - `result` CompositeEvalCreateResponseResult, required
    - `id` string, uuid, required
    - `name` string, required
    - `template_type` string
    - `aggregation_enabled` boolean, required
    - `aggregation_function` string, required
    - `composite_child_axis` string
    - `children` CompositeChildItem[], required
      - `child_id` string, uuid, required
      - `child_name` string, required
      - `order` integer, required
      - `eval_type` string
      - `pinned_version_id` string, uuid, nullable
      - `pinned_version_number` integer, nullable
      - `weight` number
      - `config` object
      - `required_keys` string[]

## 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)
