heroku/api-docs — Issue #5: POST /user/keys sets body as param key
Author: ryanbrainard
Created: 2012-03-03 03:52:21+00:00
State: open

POST /user/keys takes the key itself as the HTTP body; however, the API doc shows `body` as a field parameter. At https://api-docs.heroku.com/keys, it creates the sample curl command with a `body` parameter, like this:

curl -H "Accept: application/json" \
-u :something_secret \
-d "body=xxx" \
-X POST https://api.heroku.com/user/keys

whereas it should be:

curl -H "Accept: application/json" \
-u :something_secret \
-d "xxx" \
-X POST https://api.heroku.com/user/keys