I’m having troubles creating a dataset through the API.
What I’m doing:
I create a new S3 source manually through the Dremio UI
I the want to create a number of datasets (which reside in S3) in a space through the API. When I try, I get a “table not found error”
Strangely enough, when I create the same dataset through the Dremio UI it works. If I then retry through the API, it work also. As if it “knows” the s3 object from that moment onwards. For your information, the S3 objects are json files.
That is correct - that is the file you want to promote.
So you know want to follow [this](http://docs.dremio.com/rest-api/catalog/post-catalog-id.html):
Post to that endpoint with the id and the following body:
Do I need to URL encode the id in a particular fashion to supply to the post url? I tried different versions but either I get a 404 or an error that “Promoting can only create physical datasets.”
For anyone else who hits this problem, specifically, you have to also encode any forward slashes in the id. So using the example above, POST to /catalog/dremio%3A%2FS3%2Ffolder%2F%22test.json%22