---
title: "import Zip To Create Experimetn."
method: POST
path: "/di/v1/experiment/import"
tags: ["Experiments"]
---

# import Zip To Create Experimetn.

`POST /di/v1/experiment/import`

## Request

- Base URL: `https://di.prophecis.com`
- URL: `https://di.prophecis.com/di/v1/experiment/import`
- 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/docs/di/v1/experiment/import/post.ts> (a function with typed inputs; its response is checked against the schema)

import experiment.

## Request body `multipart/form-data`

- object
  - `file` string, binary, required
  - `fileName` string
  - `experimentId` number: if experimentId is 0 or not provided, create experiment in db; if exists, get experiment by experimentId, update it.
  - `createType` string: experiment type, default "MLFlow", choose next value, "WTSS" "DSS" "MLFlow"

## Response `200`

OK

- ProphecisExperimentIDResponse
  - `id` number, required: ProphecisExperiment ID
  - `exp_name` string: ProphecisExperiment Name

## Other responses

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

## Changes

- **2022-04-06** `8d1177afef44`: 1 info
  - endpoint added
- **2021-03-12** `c4815b4021b4`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/webankfintech/apis/prophecis-rest-service/changes/di/v1/experiment/import/post.md)

---

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