---
title: "GetExperiment"
method: GET
path: "/di/v2/experiment/{exp_id}"
tags: ["Experiment"]
---

# GetExperiment

`GET /di/v2/experiment/{exp_id}`

## Request

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

通过实验ID获取实验信息(实际获取的是这个实验最新版本的信息）

## Path parameters

- `exp_id` string, required

## Response `200`

OK

- ExperimentWithoutPipeline: 返回获取、修改后、复制后等操作的实验
  - `id` string: 实验Id
  - `name` string: 实验名称
  - `description` string: 实验描述
  - `tags` string[]
  - `group_id` string: 实验所属的项目组ID
  - `group_name` string: 实验所属的项目组
  - `version_name` string: 实验的版本
  - `deploy_setting` DeploySetting
    - `can_deploy_as_offline_service` boolean: 是否可发布为离线服务
  - `dss_info` DSSInfo
    - `flow_name` string
    - `flow_version` string
    - `flow_id` number
    - `project_name` string
    - `project_id` number
    - `workspace_name` string: workspace name,choose next value, "bdapWorkspace" "bdapWorkspace0x"
    - `workspace_id` integer: workspace id
  - `source_system` 'MLSS' | 'DSS' | 'WTSS': 实验的来源系统
  - `create_user` string: 实验的创建人
  - `create_time` string, date-time: 实验的创建时间
  - `update_user` string: 实验最后的操作人
  - `update_time` string, date-time: 实验最后的操作时间
  - `latest_execute_time` string: 实验最近的执行时间

## Other responses

- `401`: Unauthorized
- `404`: Model create failed

---

[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)
