Skip to content

Commit

Permalink
Fixes Issue #13: preventing api.webhooks.update() method from working. (
Browse files Browse the repository at this point in the history
#14)

* Fixes bug preventing api.webhooks.update() method from working.
  • Loading branch information
hpreston authored and cmlccie committed Oct 4, 2016
1 parent 8a358e0 commit 539cf1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ciscosparkapi/api/webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def update(self, webhookId, **update_attributes):
"argument must be specified."
raise ciscosparkapiException(error_message)
# API request
json_obj = self.session.post('webhooks/' + webhookId,
json_obj = self.session.put('webhooks/' + webhookId,
json=update_attributes)
# Return a Webhook object created from the response JSON data
return Webhook(json_obj)
Expand Down

0 comments on commit 539cf1f

Please sign in to comment.