---
title: "Upload Dataset Files"
method: POST
path: "/v1/accounts/{account_id}/datasets/{dataset_id}:upload"
tags: ["gateway-extra.openapi_Gateway"]
---

# Upload Dataset Files

`POST /v1/accounts/{account_id}/datasets/{dataset_id}:upload`

Provides a streamlined way to upload a dataset file in a single API request. This path can handle file sizes up to 150Mb. For larger file sizes use [Get Dataset Upload Endpoint](get-dataset-upload-endpoint).

## Path parameters

- `account_id` string, required
- `dataset_id` string, required

## Response `200`

A successful response.

- FileUploadResponse
  - `id` string — The dataset id.
  - `object` string — The object type, which is always file.
  - `bytes` integer — The size of the file, in bytes.
  - `created_at` integer — The Unix timestamp (in seconds) for when the file was created.
  - `filename` string — The name of the file.
  - `purpose` string — The intended purpose of the file.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/fw-ai-external/apis/gateway-rest-api.md) · [All operations](https://skmtc.net/fw-ai-external/apis/gateway-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fw-ai-external/gateway-rest-api/revisions/29a1e4db152c/schema)
