Search code examples
heroku

heroku restart via new API


I'm a bit confused, as there used to be a method in heroku API to restart processes of an app. Now this API seems to be deprecated and all links are leading to https://devcenter.heroku.com/articles/platform-api-reference where I cannot find any information about restart (even the word restart itself).

Can someone shed some light on it? This is, I believe, along with showing logs, one of the most important API commands for a dev, as you can do most of other tasks via heroku webui.


Solution

  • You have to use Dyno delete: https://devcenter.heroku.com/articles/platform-api-reference#dyno-delete

    If you delete a one-off dyno, it won't be restarted, if it's defined in the formation, it will be restarted.

    We'll improve the docs, thanks for pointing out this omission.