---
title: "Creating new schemas for a model"
method: PUT
path: "/models/{model_id}/schemas"
tags: ["model_schema"]
---

# Creating new schemas for a model

`PUT /models/{model_id}/schemas`

## Path parameters

- `model_id` integer, required

## Response `200`

OK

## Changes

> 34 revisions in range; 4 not diffed, 2 could not be searched.

- **2024-03-01** `d877210ee347` — 4 breaking, 4 warning, 8 info
  - added the new required request property `spec/model_prediction_output/oneOf[#/components/schemas/BinaryClassificationOutput]/actual_score_column`
  - the request property `spec/model_prediction_output/oneOf[#/components/schemas/RegressionOutput]/actual_score_column` became required
  - removed the required property `spec/model_prediction_output/oneOf[#/components/schemas/RankingOutput]/prediction_group_id_column` from the response with the `200` status
  - removed the required property `spec/prediction_id_column` from the response with the `200` status
  - …12 more
- **2024-01-26** `ab97b531bbc1` — 3 breaking, 3 info
  - the request property `spec/model_prediction_output/oneOf[#/components/schemas/BinaryClassificationOutput]/output_class` became required
  - the request property `spec/model_prediction_output/oneOf[#/components/schemas/RankingOutput]/output_class` became required
  - the request property `spec/model_prediction_output/oneOf[#/components/schemas/RegressionOutput]/output_class` became required
  - the response property `spec/model_prediction_output/oneOf[#/components/schemas/BinaryClassificationOutput]/output_class` became required for the status `200`
  - …2 more
- **2024-01-23** `c3ef0b1c733b` — 1 info
  - endpoint added
- **2023-12-05** `d062ab20ef25` — 1 breaking
  - api path removed without deprecation
- …earlier changes not shown

[Full history](https://skmtc.dev/caraml-dev/apis/merlin/changes/models/:model_id/schemas/put.md)

---

[API](https://skmtc.dev/caraml-dev/apis/merlin.md) · [All operations](https://skmtc.dev/caraml-dev/apis/merlin/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/caraml-dev/merlin/revisions/a1e12cbeeebc/schema)
