---
title: "POST /model-hub/optimize-dataset/{model_id}/right-answers/{optimization_id}/"
method: POST
path: "/model-hub/optimize-dataset/{model_id}/right-answers/{optimization_id}/"
tags: ["model-hub"]
---

# POST /model-hub/optimize-dataset/{model_id}/right-answers/{optimization_id}/

`POST /model-hub/optimize-dataset/{model_id}/right-answers/{optimization_id}/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/optimize-dataset/{model_id}/right-answers/{optimization_id}/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Request body

- OptimizeDatasetPageRequest
  - `page` integer
  - `limit` integer

## Response `200`

OK

- object
  - `results` object[], required
    - `id` string
    - `input` string
    - `output` string
    - `right_answer` string
  - `count` integer, required
  - `total_pages` integer, required
  - `current_page` integer, required
  - `next` boolean, required
  - `previous` boolean, required
  - `message` 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)
