Skip to content

Commit 8e74ac1

Browse files
committed
add example on how to add an existing user into a team
1 parent dfff705 commit 8e74ac1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/06.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,7 @@
5555
locationHeaderInResponse = response[2].get('Location')
5656
userid = int(locationHeaderInResponse.split('/').pop())
5757
print(f'Created user with id: {userid} in team: {user.get("team", default_team)}.')
58+
59+
print('--------------')
60+
print('Now add user with id 1 to team 3')
61+
users.patch_user(1, body={'action': 'add', 'team': 3})

0 commit comments

Comments
 (0)