Files
sdk-for-dart/docs/examples/functions/create-execution.md
2025-08-20 03:12:54 +12:00

19 lines
633 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
.setSession(''); // The user session to authenticate with
Functions functions = Functions(client);
Execution result = await functions.createExecution(
functionId: '<FUNCTION_ID>',
body: '<BODY>', // (optional)
xasync: false, // (optional)
path: '<PATH>', // (optional)
method: ExecutionMethod.gET, // (optional)
headers: {}, // (optional)
scheduledAt: '<SCHEDULED_AT>', // (optional)
);