---
title: "Import From Github"
method: POST
path: "/felix/datasets/import-from-github"
tags: ["felix", "datasets"]
---

# Import From Github

`POST /felix/datasets/import-from-github`

Download a file from GitHub and create a Pioneer dataset.

Args:
    request: Contains ``repo``, ``file_path``, optional ``branch``,
        ``dataset_name``, ``github_token``.
    auth: Authenticated user context.

Returns:
    DatasetResponse of the created dataset.

Raises:
    HTTPException: 400 on parse errors, 502 on download failures.

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/revisions/31dfe831e079/schema)
