Graphql API mutation to update app config?

I’ve been launching apps with the launchApp mutation, and I know you’re working on a declarative updateApp mutation (or something like it) that would work similarly, but is there any way right now to update the app config over the graphql api?

Specifically I want to edit the services to add an http health check to apps that already exist, but I’m sure I’ll need to update other things in the config for existing apps at some point too.

Thanks!

The deployImage mutation accepts a definition argument which is a JSON encoded version of the config. You can see the current one from flyctl config display or with the query:

query {
  app(name:"app-name") {
    config {
      definition
    }
  }
}
1 Like