# Creation of dataset failing through API

**URL:** <https://community.dremio.com/t/creation-of-dataset-failing-through-api/2699>\
**Category:** Uncategorized\
**Created:** [February 5, 2019, 2:49pm UTC](https://community.dremio.com/t/creation-of-dataset-failing-through-api/2699 "2019-02-05T14:49:19Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![nehal](https://avatars.discourse-cdn.com/v4/letter/n/53a042/32.png) [@nehal](https://community.dremio.com/u/nehal)\
**Post date:** [July 16, 2020, 5:38pm UTC](https://community.dremio.com/t/creation-of-dataset-failing-through-api/2699/10 "2020-07-16T17:38:20Z")

</div>

@doron I tried doing the same with javascript - it did not work for me. You can refer the details in the link below

> [@REST API - Not able to promote a file to physical dataset](https://community.dremio.com/t/rest-api-not-able-to-promote-a-file-to-physical-dataset/5927):
>
> I would like to create a dataset in Dremio via REST API doing the following. Convert file to a DataSet I follow the documention - Step 1. Get the id of the physical file via REST API: id: dremio:/cuddle\_dev\_s3-storage/“newstoreglidepathcsv\_1568879249742” Step 2: POST /api/v3/catalog/encoded{id} -\> /api/v3/catalog/dremio%3A%2Fcuddle\_dev\_s3-storage%2F%22newstoreglidepathcsv\_1568879249742%22 Still its throws 404 error. Please help me with this. I am using encodeURIComponent in javascript to …

---

_[View the full topic](https://community.dremio.com/t/creation-of-dataset-failing-through-api/2699)._
