---
title: "Marketplace Create Version"
method: POST
path: "/api/v1/marketplace/models/{model_id}/versions"
tags: ["marketplace"]
---

# Marketplace Create Version

`POST /api/v1/marketplace/models/{model_id}/versions`

## Request

- Base URL: `https://www.deepmapai.com`
- URL: `https://www.deepmapai.com/api/v1/marketplace/models/{model_id}/versions`
- Auth: none declared

Create a new version of a marketplace model.

The first version created is automatically set as active.
Subsequent versions are created inactive until explicitly
activated via the activate endpoint.

## Path parameters

- `model_id` integer, required

## Headers

- `x-api-key` string

## Request body

- MarketplaceCreateVersionRequest: Create a new model version.
  - `version` string, required: Semantic version string (e.g. 1.0.0)
  - `model_path` string, required: Path to the serialized model file
  - `changelog` string: Description of changes in this version
  - `scaler_path` string: Optional path to scaler file
  - `accuracy_metric` number, nullable: Accuracy metric for this version
  - `training_samples` integer, nullable: Number of training samples

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/deepmapai/apis/deepmap-ai.md) · [All operations](https://skmtc.dev/deepmapai/apis/deepmap-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/deepmapai/apis/deepmap-ai/revisions/dab995d977d0?raw)
