---
title: "Add or update evaluation configurations for a PromptTemplate."
method: POST
path: "/model-hub/prompt-templates/{id}/update-evaluation-configs/"
tags: ["model-hub"]
---

# Add or update evaluation configurations for a PromptTemplate.

`POST /model-hub/prompt-templates/{id}/update-evaluation-configs/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/prompt-templates/{id}/update-evaluation-configs/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

This endpoint allows adding new evaluation configurations or updating
existing ones in a PromptTemplate. If is_run is true, it will also
run evaluations on specified versions (or latest version if none specified).

## Request body

- PromptTemplate
  - `id` string, uuid
  - `name` string, required
  - `description` string, nullable
  - `variable_names` object, nullable
  - `organization` string, uuid, nullable
  - `prompt_folder` string, uuid, nullable
  - `placeholders` object, nullable
  - `created_by` string, uuid, nullable

## Response `201`

Created

- PromptTemplate
  - `id` string, uuid
  - `name` string, required
  - `description` string, nullable
  - `variable_names` object, nullable
  - `organization` string, uuid, nullable
  - `prompt_folder` string, uuid, nullable
  - `placeholders` object, nullable
  - `created_by` string, uuid, nullable

## Other responses

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