Skip to content

Commit aad1c7c

Browse files
committed
RoomsAPI.update() should send PUT request
The RoomsAPI.update() method should be sending a PUT request (not a POST).
1 parent a5ad77f commit aad1c7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ciscosparkapi/api/rooms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def update(self, roomId, **update_attributes):
225225
"argument must be specified."
226226
raise ciscosparkapiException(error_message)
227227
# API request
228-
json_obj = self._session.post('rooms/' + roomId, json=update_attributes)
228+
json_obj = self._session.put('rooms/' + roomId, json=update_attributes)
229229
# Return a Room object created from the response JSON data
230230
return Room(json_obj)
231231

0 commit comments

Comments
 (0)