Daniel Bast
05/29/2021, 6:38 AMKevin Kho
import requests
import json
query = """mutation {
create_flow_run(input: {
flow_id: "5ac80adc-442a-4e53-bc01-d9d65bffd6aa"}) {
id
}
}"""
url = '<https://api.prefect.io>'
r = <http://requests.post|requests.post>(url, json={'query': query}, headers={"authorization": "Bearer insert_token"})
print(r.status_code)
print(r.text)
Kevin Kho
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"}
Daniel Bast
05/29/2021, 7:40 AMKevin Kho