Docs
Skip to content
post

Create team

Endpoint

posthttps://<REGION>.cloud.appwrite.io/v1/teams

Description

Required scopes

teams.write

Authentication

Initialize the Appwrite client with setProject() and ensure the user is signed in. The SDK sends the session header automatically after login.

Parameters

string
Required
string
Required
array
Status
Content type
201
application/json

Team

Name
Type
Description
string
string
string
string
integer
object
JavaScript
import { Client, Teams } from "appwrite";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
const teams = new Teams(client);
const result = await teams.create({
teamId: '<TEAM_ID>',
name: '<NAME>',
roles: [] // optional
});
console.log(result);