How to pass list of Documents to rest api?

0
Hi All, I am trying to pass list of documents to api with out using loop. But in request it is not accepting the list. can anyone please help me on this? 
asked
2 answers
0

Hi Divya,

 

Are you trying to send a list of documents or are you trying to receive a list of documents?

 

If you are attempting to send a list of documents, the other server will dictate the allowed content, and you will not be able to send a list unless that server allows it.

 

If you are attempting to receive a list of documents, you require either a POST or a PUT endpoint. Documents can either be send as its binary or as a base64 string. Either way, you would require an import mapping. If you receive the list as a base64 string, you would have to decode it in a loop.

answered
0

you can merge all your documents and create a new document and send the new document to REST API

answered