Need to upload doc using rest API with folder creation

cancel
Showing results for 
Search instead for 
Did you mean: 
MOH_MCT
Customer

Need to upload doc using rest API with folder creation

Hi,

Designing a tree structure design where we have a parent folder let assume folder with name ABC and node id is abcd.

Task I need to perform is to create a runtime folder with name A1 inside ABC and need to upload doc inside it.

We are unable to do this scenario with a single rest call currently we are invoking one rest call for folder creation and second for upload doc inside it. Can anyone help me with this? So I can create a folder and upload doc inside it in a single rest call.

 

 

1 Reply
jpotts
Professional

Re: Need to upload doc using rest API with folder creation

If the REST API doesn't do what you need it to do, write your own web script to handle this logic. Your custom web script can check for the presence of the folder, create it if it is not there, and then persist the POST'ed file to the folder.