appwrite/docs/examples/1.8.x/client-react-native/examples/teams/create.md

16 lines
388 B
Markdown
Raw Normal View History

import { Client, Teams } from "react-native-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);
2025-08-20 07:22:48 +00:00
const result = await teams.create({
teamId: '<TEAM_ID>',
name: '<NAME>',
2025-08-26 03:40:03 +00:00
roles: [] // optional
2025-08-20 07:22:48 +00:00
});
console.log(result);