Restart the app via the API

Hi,

I would like to restart the app via the API.

I can see there is an endpoint to restart it by machine id but I was wonder there is a way to restart the entire app instead of individual machines.

Something like that

https://api.machines.dev/v1/apps/my-app/restart

Thanks!

We don’t have such API right now. You can do flyctl app restart [your app name], but it restarts individual machines.

I see. Thanks!

Is there way to restart all machine at once via the API?

We use flyctl actively, just wanted do some tasks via the API.

No. Right now, we don’t have the way.