Skip to content

Commit 539cf1f

Browse files
hprestoncmlccie
authored andcommitted
Fixes Issue #13: preventing api.webhooks.update() method from working. (#14)
* Fixes bug preventing api.webhooks.update() method from working.
1 parent 8a358e0 commit 539cf1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ciscosparkapi/api/webhooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def update(self, webhookId, **update_attributes):
247247
"argument must be specified."
248248
raise ciscosparkapiException(error_message)
249249
# API request
250-
json_obj = self.session.post('webhooks/' + webhookId,
250+
json_obj = self.session.put('webhooks/' + webhookId,
251251
json=update_attributes)
252252
# Return a Webhook object created from the response JSON data
253253
return Webhook(json_obj)

0 commit comments

Comments
 (0)