Hey Prefect team, I'm having some difficulty under...
# ask-community
c
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
Hi @Charles Leung - would you mind pasting the error you're getting?
I can't seem to reproduce
c
Copy code
{
  "errors": [
    {
      "path": [
        "update_action"
      ],
      "message": "'config'",
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR"
      }
    }
  ],
  "data": {
    "update_action": null
  }
}
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
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 šŸ‘
@Marvin open "`update_action` mutation expects a config argument but documentation indicates that it shouldn't need one" in Server