full-evening-87657
09/29/2023, 9:15 AMfreezing-airport-6809
freezing-airport-6809
full-evening-87657
09/30/2023, 4:12 PMdef trigger_flyte_execution(project, name, workflow_id, inputs=None):
url = "<https://api.flyte.io/v1/executions>"
payload = {
"project": project,
"name": name,
"Spec": "",
"inputs": inputs,
"id": ""
}
headers = {
"Content-Type": "application/json"
}
response = requests.post(url, headers=headers, json=payload)
return response.json()
It's just simple python scrpit to send request to endpoint, but i cann't trace the clearly format of the payload. The last error i get from response is "missing id", but when i try to add the key "id". my script is for POST request for /api/v1/executions.freezing-airport-6809
freezing-airport-6809
full-evening-87657
10/03/2023, 10:02 AM