Skip to content

Commit 55d27d3

Browse files
authored
Changing http method "POST" to "PUT" in TeamsAPI
Modifying "update" function's http method to "PUT" which was "POST" earlier due to which update team was returning error
1 parent e249eb6 commit 55d27d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ciscosparkapi/api/teams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def update(self, teamId, **update_attributes):
190190
"argument must be specified."
191191
raise ciscosparkapiException(error_message)
192192
# API request
193-
json_obj = self._session.post('teams/' + teamId,
193+
json_obj = self._session.put('teams/' + teamId,
194194
json=update_attributes)
195195
# Return a Team object created from the response JSON data
196196
return Team(json_obj)

0 commit comments

Comments
 (0)