Alex Cannon
09/09/2022, 7:19 PMcreateFlowRunInput
type in the GraphQL API doesn't include labels
, is there a way to trigger a flow run with a specific label using the GraphQL API?Rob Freedy
09/09/2022, 7:33 PMcreate_mutation = """
mutation($input: createFlowRunInput!){
createFlowRun(input: $input){
flow_run{
id
}
}
}
"""
inputs = dict(
versionGroupId="339c86be-5c1c-48f0-b8d3-fe57654afe22", parameters=dict(x=6), labels=["test1","test2"]
)
Alex Cannon
09/09/2022, 7:50 PM{
"errors": [
{
"message": "Variable \"$input\" got invalid value { versionGroupId: \"a4993c90-ed8b-44d9-a73d-87c82e929afa\", labels: [\"staging\"] }; Field \"labels\" is not defined by type createFlowRunInput.",
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
]
}
Rob Freedy
09/09/2022, 8:05 PMmutation($input: create_flow_run_input!) {
create_flow_run(input: $input) {
id
}
}
{
"input": {
"flow_id": "<INSERT_FLOW_ID_HERE>",
"labels": [
"test",
"test2"
]
}
}