submit.workflow.json: Submit a JSON file as a PEcAn workflow & obtain the...

View source: R/submit.workflow.json.R

submit.workflow.jsonR Documentation

Submit a JSON file as a PEcAn workflow & obtain the workflow_id

Description

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

Usage

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(s)

Tezan Sahu

Examples

server <- connect(url="http://pecan.localhost:80", username="carya", password="illinois")
res <- submit.workflow.json(server, "api.sipnet.json")

PecanProject/rpecanapi documentation built on April 2, 2024, 8:17 a.m.