---
title: "Import Experiment(DSS)"
method: POST
path: "/di/v1/experiment/importdss"
tags: ["Experiments"]
---

# Import Experiment(DSS)

`POST /di/v1/experiment/importdss`

## Request

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

import Experiment(DSS)

## Request body `application/x-www-form-urlencoded`

- object
  - `resourceId` string, required
  - `version` string
  - `desc` string
  - `experimentId` number: if experimentId is 0 or not provided, create experiment in db; if exists, get experiment by experimentId, update it.

## Response `200`

Import Experiment(Dss) Response definition

- ProphecisImportExperimentDssResponse
  - `expId` number: Experiment Id

## Other responses

- `401`: Unauthorized
- `404`: The Experiment 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/importdss/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)
