Files
appwrite/docs/examples/1.6.x/server-php/examples/teams/update-membership.md

17 lines
428 B
Markdown

<?php
use Appwrite\Client;
use Appwrite\Services\Teams;
$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
->setProject('<YOUR_PROJECT_ID>') // Your project ID
->setSession(''); // The user session to authenticate with
$teams = new Teams($client);
$result = $teams->updateMembership(
teamId: '<TEAM_ID>',
membershipId: '<MEMBERSHIP_ID>',
roles: []
);