Files
sdk-for-dart/docs/examples/tablesdb/update-string-column.md
2025-08-21 22:19:54 +12:00

19 lines
545 B
Markdown

import 'package:dart_appwrite/dart_appwrite.dart';
Client client = Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
TablesDB tablesDB = TablesDB(client);
ColumnString result = await tablesDB.updateStringColumn(
databaseId: '<DATABASE_ID>',
tableId: '<TABLE_ID>',
key: '',
xrequired: false,
xdefault: '<DEFAULT>',
size: 1, // (optional)
newKey: '', // (optional)
);