How to create a file in a plugin using the DSS public API
UserBird
Dataiker, Alpha Tester Posts: 535 Dataiker
Hello,
it's quite easy to alter an existing file with the DSS REST API with the documented method POST (https://doc.dataiku.com/dss/api/4.1/rest/#plugins-plugin-contents-post)
But when i try to create a new file the API refuse to do it with this answer :
{
"errorType": "java.lang.IllegalArgumentException",
"message": "File README.md does not exist",
"detailedMessage": "File README.md does not exist",
"stackTrace": []
}
Does anyone acheived to create a new file without relying on the plugin update endpoint (uploading a zip file) ?
Or am i missing something ?
Answers
-
Hello,
Indeed the REST API currently needs the file to be created beforehand. I will add this feature to our backlog.
Cheers,
Alex