Skip to content
post

Create build

Endpoint

posthttps://<REGION>.cloud.appwrite.io...nts/{deploymentId}/builds/{buildId}

Description

Required scopes

functions.write

Authentication

Initialize the Appwrite client with setProject() and a server API key (setKey()). For direct REST calls, send X-Appwrite-Project and X-Appwrite-Key.

Path

string
Required
string
Required
string
Required
Status
Content type
204
-
Dart
import 'package:dart_appwrite/dart_appwrite.dart';
Client client = Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
Functions functions = Functions(client);
result = await functions.createBuild(
functionId: '<FUNCTION_ID>',
deploymentId: '<DEPLOYMENT_ID>',
buildId: '<BUILD_ID>', // (optional)
);