---
title: "UploadExperimentFlowJson"
method: POST
path: "/di/v2/experiment/upload_flow_json"
tags: ["Experiment"]
---

# UploadExperimentFlowJson

`POST /di/v2/experiment/upload_flow_json`

## Request

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

上传一个实验的FlowJson zip包，该接口会返回一个上传id，在CreateExperiment时用于 flowjson_upload_id字段

## Request body `multipart/form-data`

- object
  - `file` string, binary, required: 上传的表示实验工作流的zip文件，zip文件里应该包含一个名为flow.json的json文件

## Response `200`

OK

- UploadExperimentFlowJsonResponse
  - `upload_id` string: 上传实验flowjosn得到的上传id，可以用于CreateExperiment，id有效期为xx分钟

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