Skip to content

Commit d94ce23

Browse files
committed
#30 Correct REST verb in team_membership.update()
Verb should be PUT instead of POST
1 parent aad1c7c commit d94ce23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ciscosparkapi/api/teammemberships.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def update(self, membershipId, **update_attributes):
236236
"argument must be specified."
237237
raise ciscosparkapiException(error_message)
238238
# API request
239-
json_obj = self._session.post('team/memberships/' + membershipId,
239+
json_obj = self._session.put('team/memberships/' + membershipId,
240240
json=update_attributes)
241241
# Return a TeamMembership object created from the response JSON data
242242
return TeamMembership(json_obj)

0 commit comments

Comments
 (0)