Hey Prefect team,
I'm having some difficulty understanding the proper arguments to modify/update an action. I am running:
mutation {
update_action (input:{
action_id: "<Action ID>"
name: "CH4 Prefect Agents Down"
}) {
success
}
}
But in return i get an internal server error; i just want to rename the action specified in the ID
⢠nevermind resolved - just resupplied the config argument
n
nicholas
08/24/2021, 3:28 PM
Hi @Charles Leung - would you mind pasting the error you're getting?
This is the error - the endpoint doc from the graphql UI implies that if config isn't supplied, it will keep it the same. However i found that this message means it's still looking for a config argument. It fails when i supply config: null as well
n
nicholas
08/24/2021, 3:43 PM
Ah thanks @Charles Leung - this looks like something we either need to fix in the API or in the documentation. I'll open a ticket š
nicholas
08/24/2021, 3:43 PM
@Marvin open "`update_action` mutation expects a config argument but documentation indicates that it shouldn't need one" in Server
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.