Can't PUT new confighash via callback_url

14 views
Skip to first unread message

friism

unread,
Sep 27, 2011, 12:59:02 PM9/27/11
to Heroku Add-on Providers, mor...@heroku.com, p...@heroku.com
I'm experimenting with updating the config hash of a provisioned add-
on. I can successfully GET the callback_url using this command:

curl https://appharbordonothingaddon:p...@api.heroku.com/vendor/apps/788791

I cannot PUT a new config hash, however:

curl -H "Accept: application/json" -X PUT -d @data
https://appharboonothingaddon:p...@api.heroku.com/vendor/apps/788791 -w
"%{http_code}"

The data file (@data) contains stuff along these lines:
{"APPHARBORDONOTHINGADDON_CONFIGVAR":"Bar"}

(I've also experimented with {"config":{...}} etc.).

Heroku always return http 500. What am I doing wrong?

Michael

friism

unread,
Oct 3, 2011, 10:24:07 AM10/3/11
to Heroku Add-on Providers
This turned out to an error on my part, the correct JSON to PUT looks
like this:
'{"config": {"APPHARBORDONOTHINGADDON_CONFIGVAR":"Baz"}}'

Michael
Reply all
Reply to author
Forward
0 new messages