I create a boilerplate for REST API integration with Knowage. See if it can help you
https://github.com/darwinpasco25/KnowageServiceConsoleApp
I got this to work.
Probleme came from documentation :https://knowage.docs.apiary.io/#reference/0/the-datasets/add-a-dataset
there is a key that is not recognized in the Body JSON object. (please get this out of the doc)It works fine without this:
'publicDS': true,