I am trying to test out connecting my retool web-based application to take an uploaded file and send it to my box drive via the upload PUSH. The below screenshots show my settings for setting up the API connection, and then the form information for the PUSH. However, when I run it I get a 400 code with a blank message (“”). When I look in the response, It also states a 415 error of invalid file type (see attached). The file is stored encoded with base64 (not sure if that is the problem since the documentation states a string or binary.
I am not sure if this is a box issue, retool issue, or user issue (or a combination).
I will say I am fairly new to APIs so please bare with me.
I could not find specifics in the Retool documentation for how they handle file processing. From my understanding, the file uploader used to store the data is temporarily stored in a local JS variable as an object. To my understanding there is not a backend process aside from the initial encoding.
As for stacks, most of the application is performed in JS, with some of the backend processes on Retools side (which I do not have access to) is node.js and JSON.
I have seem to fixed all the authorization and file binary issues I was having. However, I am not getting a 400 error stating I have not supplied a parent id. However, as seen in the attachments, this is provided. I am not sure how else to showcase the parent.id attribute. The documentation does state that the parent is an object.