---
title: "CreateExperimentVersion"
method: POST
path: "/di/v2/experiment/{exp_id}/version"
tags: ["Experiment"]
---

# CreateExperimentVersion

`POST /di/v2/experiment/{exp_id}/version`

## Request

- Base URL: `https://di.prophecis.com`
- URL: `https://di.prophecis.com/di/v2/experiment/{exp_id}/version`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-Watson-Authorization-Token`
  - API key in query parameter `watson-token`
- TypeScript: <https://skmtc.dev/webankfintech/apis/prophecis-rest-service-v2/docs/di/v2/experiment/:exp_id/version/post.ts> (a function with typed inputs; its response is checked against the schema)

新增一个实验版本（也就是将当前实验存为一个固定版本）

## Path parameters

- `exp_id` string, required

## Request body

- CreateExperimentVersionRequest
  - `description` string: 固化当前版本的同时修改其描述

## Response `200`

OK

- CreateExperimentVersionResponse
  - `archived_version_name` string: 返回固化的版本
  - `latest_version_name` string: 返回当前最新的版本（一般是固化的版本+1）

## Other responses

- `401`: Unauthorized
- `404`: The Models cannot be found

---

[API](https://skmtc.dev/webankfintech/apis/prophecis-rest-service-v2.md) - [All operations](https://skmtc.dev/webankfintech/apis/prophecis-rest-service-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/webankfintech/apis/prophecis-rest-service-v2/revisions/ea40aedea89c?raw)
