---
title: "Upload a flow"
method: POST
path: "/flow"
tags: ["flow"]
---

# Upload a flow

`POST /flow`

Uploads a flow. Upon success, it returns the flow id.

## Query parameters

- `api_key` string, required

## Response `200`

Id of the uploaded flow

- object
  - `upload_flow` InlineResponse2009UploadFlow
    - `id` string — ID of the uploaded flow, a positive integer

## Other responses

- `412` — Precondition failed. An error code and message are returned. 160 - Error in file uploading. There was a problem with the file upload. 161 - Please provide description xml. 163 - Problem validating uploaded description file. The XML description format does not meet the standards. 164 - Flow already stored in database. Please change name or version number 165 - Failed to insert flow. There can be many causes for this error. If you included the implements field, it should be an existing entry in the algorithm or math_function table. Otherwise it could be an internal server error. Please contact API support team. 166 - Failed to add flow to database. Internal server error, please contact API administrators 167 - Illegal files uploaded. An non required file was uploaded. 168 - The provided md5 hash equals not the server generated md5 hash of the file. 169 - Please provide API key. In order to share content, please authenticate and provide API key. 170 - Authentication failed. The API key was not valid. Please try to login again, or contact API administrators 171 - Flow already exists. This flow is already in the database 172 - XSD not found. Please contact API support team

---

[API](https://skmtc.net/openml/apis/openml-api.md) · [All operations](https://skmtc.net/openml/apis/openml-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openml/openml-api/versions/263d3d6ee586/schema)
