Skip to content

Instantly share code, notes, and snippets.

@marlonklc
Last active May 20, 2023 15:56
Show Gist options
  • Save marlonklc/6c2eef009fd87c9466b5e9b1f8d91024 to your computer and use it in GitHub Desktop.
Save marlonklc/6c2eef009fd87c9466b5e9b1f8d91024 to your computer and use it in GitHub Desktop.
useful heroku APIs
# restart heroku dyno
curl --location --request DELETE 'https://api.heroku.com/apps/web-scrap-amazon-wishlist/dynos/web' \
--header 'Accept: application/vnd.heroku+json; version=3' \
--header 'Authorization: Bearer <token-api>'
# stop heroku dyno
curl --location --request POST 'https://api.heroku.com/apps/web-scrap-amazon-wishlist/dynos/web/actions/stop' \
--header 'Accept: application/vnd.heroku+json; version=3' \
--header 'Authorization: Bearer <token-api>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment