Skip to content

Commit

Permalink
add example on how to add an existing user into a team
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Mar 7, 2023
1 parent dfff705 commit 8e74ac1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/06.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@
locationHeaderInResponse = response[2].get('Location')
userid = int(locationHeaderInResponse.split('/').pop())
print(f'Created user with id: {userid} in team: {user.get("team", default_team)}.')

print('--------------')
print('Now add user with id 1 to team 3')
users.patch_user(1, body={'action': 'add', 'team': 3})

0 comments on commit 8e74ac1

Please sign in to comment.