I would like to send a file in the request, not from client, but directly from server. Is it possible?
request("https://www.arcgis.com/sharing/rest/content/features/generate",{
query: myContent,
body: myFile,// handle to file from server
responseType:"json"})