mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
chore: release sdks to fix createMembership roles param
This commit is contained in:
1 parent
435af97db1
commit
df20c12f6e
67 files changed
+3927
-3878
No files matched your search
@@ -1,7 +1,6 @@
|
||||
```python
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.teams import Teams
|
||||
from appwrite.enums import Roles
|
||||
|
||||
client = Client()
|
||||
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
@@ -12,7 +11,7 @@ teams = Teams(client)
|
||||
|
||||
result = teams.create_membership(
|
||||
team_id = '<TEAM_ID>',
|
||||
roles = [Roles.ADMIN],
|
||||
roles = [],
|
||||
email = 'email@example.com', # optional
|
||||
user_id = '<USER_ID>', # optional
|
||||
phone = '+12065550100', # optional
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
```python
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.teams import Teams
|
||||
from appwrite.enums import Roles
|
||||
|
||||
client = Client()
|
||||
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
|
||||
@@ -13,6 +12,6 @@ teams = Teams(client)
|
||||
result = teams.update_membership(
|
||||
team_id = '<TEAM_ID>',
|
||||
membership_id = '<MEMBERSHIP_ID>',
|
||||
roles = [Roles.ADMIN]
|
||||
roles = []
|
||||
)
|
||||
```
|
||||
Reference in new issue
Block a user