Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/appwrite/src/services/teams.ts>Teams#createMembership

[READ-ONLY] Official Appwrite Deno SDK 🦕
Go to Latest
method Teams.prototype.createMembership
import { Teams } from "https://deno.land/x/appwrite@0.0.2/src/services/teams.ts";

Create Team Membership

Use this endpoint to invite a new member to join your team. An email with a link to join the team will be sent to the new member email address if the member doesn't exist in the project it will be created automatically.

Use the 'URL' parameter to redirect the user from the invitation email back to your app. When the user is redirected, use the Update Team Membership Status endpoint to allow the user to accept the invitation to the team.

Please note that in order to avoid a Redirect Attacks the only valid redirect URL's are the once from domains you have set when added your platforms in the console interface.

Parameters

teamId: string

teamId

email: string

email

roles: Array<any>

roles

url: string

url

optional
name: string = [UNSUPPORTED]

name

Returns

Promise<string>

Promise