---
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` InlineResponse2005UploadTask
    - `id` string — ID of the uploaded task, a positive integer

## Other responses

- `412` — Precondition failed. An error code and message are returned. 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.

---

[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/revisions/263d3d6ee586/schema)
