Validate the output file download
A REST request is made to the GMUS to validate the output file that needs to be downloaded. The fileSubDir is optional parameter.
URL: http://<ipAddress>:8070/rest/validateFileDownload
Method Type: POST
Parameters (with example values):
{ "clientAppId" : "XXXXXXXX-1e47-abcd-ba66-XXXXXXXXXXXX", "clientUserId": "XXXXXXXX-abcd-4284-aa45-XXXXXXXXXXXX", "username" : "jane.doe@gmail.com", "filePath" : "/home/jDoe/Downloads/output", "fileSubDir" : "users" "fileName" : "User.txt" }
(or) If you provide the Resource Variable as a file path, you need to provide the profileId. You can get the Profile ID from My Organization Page from the GenRocket web platform.
{ "clientAppId" : "XXXXXXXX-1e47-abcd-ba66-XXXXXXXXXXXX", "clientUserId": "XXXXXXXX-abcd-4284-aa45-XXXXXXXXXXXX", "username" : "jane.doe@gmail.com", "profileId" : "GRXX30XXX", "filePath" : "#{resource.output.directory}", "fileSubDir" : "users" "fileName" : "User.txt" }