I'm new to the BOX API so am using v2 of the API. I am making REST calls natively from my app.
I want to upload a file which may or may not have been previously uploaded. I know the parent folder ID and the file name. I need to either overwrite an existing file or at least make another call to see if the file already exists. I can see no way of doing either with the v2 API.
I can upload files without problem. But of course I get an error if the file already exists.
To me this is fairly basic stuff so perhaps I am missing something reasonably obvious?
name
property, which you can use for comparison, and an id
property, which you can use in conjunction with the Upload a New Version of a File method mentioned above.