How to upload file to Box.com by using ICS rest adapter?
Content
Upload file to Box.com by postman like below:
- Upload file reat api: https://upload.box.com/api/2.0/files/content . POST
- Headesr: Authorization Bearer N6fR23nrCelqIbQLi3TXholxxxxxxx
Content-Type multipart/form-data
3. Body: Select form-data radio button
Key: file (select file, not text). Value: choose a file from local
Key: attributes. Value: {"name":"2.txt", "parent":{"id":"0"}}
Then send the request, the file could upload.
Now I want to upload the file to Box using OIC rest adapter.
- I create a Rest Adapter Trigger
- I also create a Rest Adapter Invoke (connection type: REST API Base URL, connection URL: https://api.box.com/2.0
0