---
title: "Put prediction"
method: PUT
path: "/api/predictions/{id}/"
tags: ["Predictions"]
---

# Put prediction

`PUT /api/predictions/{id}/`

Overwrite prediction data by prediction ID.

## Path parameters

- `id` integer, required

## Request body

- PredictionRequest
  - `cluster` integer, nullable — Cluster for the current prediction
  - `mislabeling` number, double — Related task mislabeling score
  - `model` integer, nullable — An ML Backend instance that created the prediction.
  - `model_run` integer, nullable — A run of a ModelVersion that created the prediction.
  - `model_version` string — Model version - tag for predictions that can be used to filter tasks in Data Manager, as well as select specific model version for showing preannotations in the labeling interface
  - `neighbors` unknown
  - `project` integer, nullable
  - `result` object[], required — List of prediction results for the task
  - `score` number, double, nullable — Prediction score
  - `task` integer, required

## Response `200`

Updated prediction

- Prediction
  - `cluster` integer, nullable — Cluster for the current prediction
  - `created_ago` string, required — Delta time from creation time
  - `created_at` string, date-time, required
  - `id` integer, required
  - `mislabeling` number, double — Related task mislabeling score
  - `model` integer, nullable — An ML Backend instance that created the prediction.
  - `model_run` integer, nullable — A run of a ModelVersion that created the prediction.
  - `model_version` string — Model version - tag for predictions that can be used to filter tasks in Data Manager, as well as select specific model version for showing preannotations in the labeling interface
  - `neighbors` unknown
  - `project` integer, nullable
  - `result` object[], required — List of prediction results for the task
  - `score` number, double, nullable — Prediction score
  - `task` integer, required
  - `updated_at` string, date-time, required

---

[API](https://skmtc.net/humansignal/apis/label-studio-api.md) · [All operations](https://skmtc.net/humansignal/apis/label-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/humansignal/label-studio-api/versions/1b113b8df950/schema)
