---
title: "Get task type description"
method: GET
path: "/tasktype/{id}"
tags: ["tasktype"]
---

# Get task type description

`GET /tasktype/{id}`

Returns information about a task type. The information includes a description, the given inputs and the expected outputs.

## Path parameters

- `id` number, required

## Query parameters

- `api_key` string

## Response `200`

A task type description

- TaskType
  - `id` string — ID of the task type, a positive integer
  - `name` string — The name of the task type, e.g. Supervised Classification
  - `description` string — A description of the task type
  - `contributor` string[]
  - `date` string — The date when the task type was created
  - `input` TaskTypeInput[]
    - `name` string — The name of the input, e.g. source_data
    - `data_set` TaskTaskDescriptionDataSet
      - `data_set_id` string — The id of the dataset
      - `target_feature` string — The name of the target feature for this task
    - `estimation_procedure` TaskTaskDescriptionEstimationProcedure
      - `type` string — The type of procedure, e.g. crossvalidation
      - `data_splits_url` string — The url where the data splits can be downloaded
      - `parameter` TaskTaskDescriptionEstimationProcedureParameter[]
        - `name` string — The name of the parameter
        - `value` string — The value of the parameter
    - `cost_matrix` array[]
      - integer[] — The cost matrix, indicating the costs for each type of misclassification
    - `evaluation_measures` TaskTaskDescriptionEvaluationMeasures
      - `evaluation_measure` string — The evaluation measure to optimize in this task
  - `output` TaskTypeOutput[]
    - `name` string — The name of the output, e.g. predictions
    - `predictions` TaskTypePredictions
      - `format` string — The format of the predictions, e.g. ARFF
      - `feature` TaskTaskDescriptionPredictionsFeature[]
        - `name` string — The name of the prediction feature, e.g. row_id
        - `type` string — The type of the prediction feature, e.g. integer

## Other responses

- `412` — Precondition failed. An error code and message are returned. 240 - Please provide task type ID. 241 - Unknown task type. The task type with the given id was not found in the database

---

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