Hi Team, I am trying to trigger workflow using API...
# ask-the-community
s
Hi Team, I am trying to trigger workflow using API POST call (alternatively to FlyteRemote). I am struggling with body preparation because it is not well described in API documentation. Does anyone tried to trigger workflow using API call? import requests url = "http://localhost:30080/api/v1/executions" body ={"project":"my-project", "domain" : "development", "spec":{}, "id" : "workflows.data_platform_flow.fetch_data_workflow"} api_headers = {"Content-type":"application/json"} response = requests.post(url=url, json=body, headers=api_headers) print(response.text) {"code":3, "message":"proto: (line 1:64): unknown field \"id\"", "details":[]}
k
You should use the OpenApi gateway that runs on admin.
s
could you please elaborate on that ?