# How to Create Physical Data Set using API or SQL?

**URL:** <https://community.dremio.com/t/how-to-create-physical-data-set-using-api-or-sql/3754>\
**Category:** Uncategorized\
**Created:** [July 25, 2019, 10:45am UTC](https://community.dremio.com/t/how-to-create-physical-data-set-using-api-or-sql/3754 "2019-07-25T10:45:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marvinwu](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@marvinwu](https://community.dremio.com/u/marvinwu)\
**Post date:** [July 25, 2019, 10:45am UTC](https://community.dremio.com/t/how-to-create-physical-data-set-using-api-or-sql/3754/1 "2019-07-25T10:45:55Z")

</div>

I know we can create virtual data set using CREATE VDS command, is that possible to create physical data set too using API or SQL query ?

I can’t seem to find the info anywhere

what I want to do is quite simple.

- upload a new data file to s3.
- using dremio to import it.

---

<div class="post-metadata">

**Author:** ![doron](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/doron/32/294_2.png) [@doron](https://community.dremio.com/u/doron)\
**Post date:** [July 25, 2019, 3:08pm UTC](https://community.dremio.com/t/how-to-create-physical-data-set-using-api-or-sql/3754/2 "2019-07-25T15:08:59Z")

</div>

You can promote a file or folder using [https://docs.dremio.com/rest-api/catalog/post-catalog-id.html](https://docs.dremio.com/rest-api/catalog/post-catalog-id.html).

---

<div class="post-metadata">

**Author:** ![marvinwu](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@marvinwu](https://community.dremio.com/u/marvinwu)\
**Post date:** [July 26, 2019, 1:46am UTC](https://community.dremio.com/t/how-to-create-physical-data-set-using-api-or-sql/3754/3 "2019-07-26T01:46:50Z")

</div>

Thank you @doron ! Thats exactly what I need. don’t know how can I missed this.
