Add multiple document in folder using REST API (Content Server)

Options

Hi All,

I want to add multiple document to a node in Content Server, I am aware using Endpoint as mentioned https://developer.opentext.com/alpha/cs.exe/api/v2/nodes , I can upload a file to a respective node but what if I want to attach more than 1 file in a single call.

thanks in advance.

Regards,

Ankur

Comments

  • Appu Nair
    edited February 4, 2022 #2
    Options

    Unless the Object you are creating is a 144 subtype of a zip nature each node represents a unique dataid in CS so I am not sure how much you could get away with it. You may be able to device a custom rest api endpoint inheriting the nodes call and make its payload multiple files and perhaps create them one by one returning the nodeids create or add versioned.

    You could perhaps also create your program that goes from 1 to n of files and add them one by one calling the rest command in a loop.