Skip to content

Commit 08e588e

Browse files
committed
Squash bugs
Add missing ID suffixes to URLs on update methods.
1 parent a124370 commit 08e588e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ciscosparkapi/api/memberships.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ def update(self, membershipId, **update_attributes):
260260
value = utf8(value)
261261
put_data[utf8(param)] = value
262262
# API request
263-
json_obj = self.session.post('memberships', json=put_data)
263+
json_obj = self.session.post('memberships/'+membershipId,
264+
json=put_data)
264265
# Return a Membership object created from the response JSON data
265266
return Membership(json_obj)
266267

ciscosparkapi/api/rooms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def update(self, roomId, **update_attributes):
229229
value = utf8(value)
230230
put_data[utf8(param)] = value
231231
# API request
232-
json_obj = self.session.post('rooms', json=put_data)
232+
json_obj = self.session.post('rooms/'+roomId, json=put_data)
233233
# Return a Room object created from the response JSON data
234234
return Room(json_obj)
235235

0 commit comments

Comments
 (0)