Skip to content
post

Create Execution

Endpoint

posthttps://<REGION>.cloud.appwrite.io/v1/functions/{functionId}/executions

Description

Required scopes

execution.write

Authentication

Initialize the Appwrite client with setProject() and ensure the user is signed in. The SDK sends the session header automatically after login.

Rate limit

Up to 60 requests per minute for each IP address calling this endpoint.
Server API key requests bypass this rate limit.

Path

string
Required

Body

string
boolean
Status
Content type
201
application/json

Execution

Name
Type
Description
string
integer
integer
arrayof string
string
string
string
integer
string
string
number
Swift
import Appwrite
func main() async throws {
let client = Client()
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
let functions = Functions(client)
let execution = try await functions.createExecution(
functionId: "[FUNCTION_ID]"
)
print(String(describing: execution)
}