Appwrite. Services. Teams
(appwrite v1.0.0)
View Source
The Teams service allows you to group users of your project and to enable them to share read and write access to your project resources.
Summary
Functions
Create a new Team.
Invite a user to the team (create a membership).
Delete a Team by its unique ID.
Remove a user from the team (delete membership).
Get a Team by its unique ID.
Get a membership by its unique ID.
Get a Team's preferences.
List all Teams the current user belongs to.
List memberships for a Team.
Update a Team's name.
Update a membership's roles.
Accept an invitation (update membership status).
Update a Team's name (preferred alias for update/2).
Update a Team's preferences.
Functions
Create a new Team.
@spec create_membership( String.t(), [String.t()], String.t() | nil, String.t() | nil, String.t() | nil, String.t() | nil, String.t() | nil ) :: {:ok, map()} | {:error, any()}
Invite a user to the team (create a membership).
Delete a Team by its unique ID.
Remove a user from the team (delete membership).
Get a Team by its unique ID.
Get a membership by its unique ID.
Get a Team's preferences.
List all Teams the current user belongs to.
Parameters
queries(optional)search(optional)total(optional) — whenfalse, skips count calculation
@spec list_memberships( String.t(), [String.t()] | nil, String.t() | nil, boolean() | nil ) :: {:ok, map()} | {:error, any()}
List memberships for a Team.
Parameters
team_id(required)queries(optional)search(optional)total(optional) — whenfalse, skips count calculation
Update a Team's name.
Update a membership's roles.
@spec update_membership_status(String.t(), String.t(), String.t(), String.t()) :: {:ok, map()} | {:error, any()}
Accept an invitation (update membership status).
Update a Team's name (preferred alias for update/2).
Update a Team's preferences.