---
title: "POST /data/component/upload/file"
method: POST
path: "/data/component/upload/file"
tags: ["data"]
---

# POST /data/component/upload/file

`POST /data/component/upload/file`

## Request body

- ReqComponentUploadFile
  - `head` boolean, required — Whether the first row of the file is the data's head
  - `partitions` integer, required — Number of data partitions
  - `meta` object — Metadata of the data
  - `extend_sid` boolean — Whether to automatically fill a column as data row ID
  - `namespace` string — Namespace of the data table
  - `name` string — Name of the data table

## Response `200`

Success

- ResponseUploadData
  - `message` string
  - `code` integer
  - `data` DataInfo
    - `name` string
    - `namespace` string
  - `job_id` string

---

[API](https://skmtc.net/federatedai/apis/fate-flow-restful-api.md) · [All operations](https://skmtc.net/federatedai/apis/fate-flow-restful-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/federatedai/fate-flow-restful-api/versions/79b43d689db6/schema)
