Skip to content

Instantly share code, notes, and snippets.

@brandur
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandur/9e0f3ca60f33ead88743 to your computer and use it in GitHub Desktop.
Save brandur/9e0f3ca60f33ead88743 to your computer and use it in GitHub Desktop.
Backward compatible sizes
```
$ curl -H "Accept: application/vnd.heroku+json; version=3" -n https://api.heroku.com/apps/mutelight/formation/web -X PATCH -H "Content-Type: application/json" -d '{"size":"2"}'
{
"command":"bundle exec puma --quiet --threads 8:32 --port $PORT config.ru",
"created_at":"2011-12-20T22:37:57Z",
"id":"74429111-42e2-4dc1-8141-b841aa164d06",
"type":"web",
"quantity":1,
"size":"2X",
"updated_at":"2014-02-03T19:38:35Z"
}
$ curl -H "Accept: application/vnd.heroku+json; version=3" -n https://api.heroku.com/apps/mutelight/formation/web -X PATCH -H "Content-Type: application/json" -d '{"size":"1"}'
{
"command":"bundle exec puma --quiet --threads 8:32 --port $PORT config.ru",
"created_at":"2011-12-20T22:37:57Z",
"id":"74429111-42e2-4dc1-8141-b841aa164d06",
"type":"web",
"quantity":1,
"size":"1X",
"updated_at":"2014-02-03T19:38:42Z"
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment