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.

From How To to Questions / Help

Hey ~ same request for me, being able to restart a server through API would help a lot to fix issues remotely. Is that on the on the roadmap?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.