I'm trying to upload a new document using the REST API, and running in to an issue.
I can authenticate the current user (using SSO)
I can get that user's details.
I can create a new folder.
But I get a "bad request" when trying to upload a new document - any insight would be much appreciated.
I've attached my testing code for reference - the first 3 functions work, the fourth one doesn't.
Thanks