---
title: "PATCH — partial update of a composite eval."
method: PATCH
path: "/model-hub/eval-templates/{template_id}/composite/"
tags: ["model-hub"]
---

# PATCH — partial update of a composite eval.

`PATCH /model-hub/eval-templates/{template_id}/composite/`

## Request

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

Supported fields (all optional):
  name, description, tags,
  aggregation_enabled, aggregation_function,
  child_template_ids (replaces the child list),
  child_weights (map of child_id -> weight).

## Request body

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

## Response `200`

OK

- CompositeEvalDetailResponse
  - `status` boolean, required
  - `result` CompositeEvalDetailResponseResult, 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[]
    - `description` string, nullable
    - `tags` string[]
    - `created_at` string
    - `updated_at` string
    - `version_number` integer, nullable

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