Groups
Groups
Sign in
Groups
Groups
Heroku Add-on Providers
Conversations
About
Send feedback
Help
Can't PUT new confighash via callback_url
14 views
Skip to first unread message
friism
unread,
Sep 27, 2011, 12:59:02 PM
9/27/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
10/3/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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