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

# Upload task

`POST /task`

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

## Query parameters

- `api_key` string, required

## Response `200`

Id of the uploaded task

- object
  - `upload_task` object
    - `id` string — ID of the uploaded task, a positive integer

## Other responses

- `530` — Description file not present. Please upload the task description.
- `531` — Internal error. Please contact api support team
- `532` — Problem validating uploaded description file. The XML description format does not meet the standards
- `533` — Task already exists.
- `534` — Error creating the task.

## Changes

- **2018-01-17** `2209d99ea36e` — 6 info
  - added the non-success response with the status `530`
  - added the non-success response with the status `531`
  - added the non-success response with the status `532`
  - added the non-success response with the status `533`
  - …2 more

[Change history](https://skmtc.dev/openml/apis/openml-api/changes/task/post.md)

---

[API](https://skmtc.dev/openml/apis/openml-api.md) · [All operations](https://skmtc.dev/openml/apis/openml-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openml/openml-api/revisions/2209d99ea36e/schema)
