submit.workflow.json.Rd
Submit a JSON file as a PEcAn workflow.
Hits the POST /api/workflows/
API endpoint
submit.workflow.json(server, jsonFile)
Server object obtained using the connect() function
JSON file containing the workflow configurations
Response obtained from the POST /api/workflow/
endpoint
server <- connect(url="http://pecan.localhost:80", username="carya", password="illinois")
res <- submit.workflow.json(server, "api.sipnet.json")
#> Warning: cannot open file 'api.sipnet.json': No such file or directory
#> Error in open.connection(con, "rb"): cannot open the connection