Docs
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
-
Swift
import Appwrite
let 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
let functions = Functions(client)
let result = try await functions.createBuild(
functionId: "<FUNCTION_ID>",
deploymentId: "<DEPLOYMENT_ID>",
buildId: "<BUILD_ID>" // optional
)