---
title: "POST /model-hub/custom-metric/update/"
method: POST
path: "/model-hub/custom-metric/update/"
tags: ["model-hub"]
---

# POST /model-hub/custom-metric/update/

`POST /model-hub/custom-metric/update/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/custom-metric/update/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Request body

- CustomMetricMutationRequest
  - `id` string, uuid
  - `model_id` string, uuid
  - `name` string
  - `prompt` string
  - `metric_type` string
  - `evaluation_type` string
  - `datasets` object

## Response `200`

OK

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