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 a server API key (setKey()), or authenticate as a signed-in user (setSession() or setJWT()). For direct REST calls, send X-Appwrite-Project with either X-Appwrite-Key or session/JWT headers.

Parameters

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

Team

Name
Type
Description
string
string
string
string
integer
Swift
import Appwrite
func main() async throws {
let client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
let teams = Teams(client)
let team = try await teams.create(
teamId: "[TEAM_ID]",
name: "[NAME]"
)
print(String(describing: team)
}