How to create a file in a plugin using the DSS public API

UserBird
Dataiker
How to create a file in a plugin using the DSS public API

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 ?

0 Kudos
1 Reply
Alex_Combessie
Dataiker Alumni
Hello,

Indeed the REST API currently needs the file to be created beforehand. I will add this feature to our backlog.

Cheers,

Alex
0 Kudos

Labels

?
Labels (2)
A banner prompting to get Dataiku