const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey(''); // Your secret API key const users = new sdk.Users(client); const result = await users.updateTarget( '', // userId '', // targetId '', // identifier (optional) '', // providerId (optional) '' // name (optional) );