Submit a JSON file as a PEcAn workflow. Hits the POST /api/workflows/ API endpoint

submit.workflow.json(server, jsonFile)

Arguments

server

Server object obtained using the connect() function

jsonFile

JSON file containing the workflow configurations

Value

Response obtained from the POST /api/workflow/ endpoint

Author

Tezan Sahu

Examples

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