Appwrite. Services. Functions
(appwrite v1.0.0)
View Source
The Functions service allows you to create custom behaviour that can be triggered by any supported Appwrite system events or by a predefined schedule.
Summary
Functions
Create (trigger) a new function execution.
Get an execution by its unique ID.
List all executions for a given function.
Functions
@spec create_execution( String.t(), String.t() | nil, boolean() | nil, String.t() | nil, String.t() | nil, map() | nil, String.t() | nil ) :: {:ok, map()} | {:error, any()}
Create (trigger) a new function execution.
Parameters
function_id(required)body(optional) – custom execution payloadxasync(optional) – whentrue, runs the execution asynchronouslypath(optional) – custom path for the HTTP triggermethod(optional) – HTTP method for the trigger (GET, POST, etc.)headers(optional) – map of custom request headersscheduled_at(optional) – ISO 8601 date string for scheduled execution
Get an execution by its unique ID.
Parameters
function_id(required)execution_id(required)
@spec list_executions( String.t(), [String.t()] | nil, String.t() | nil, boolean() | nil ) :: {:ok, map()} | {:error, any()}
List all executions for a given function.
Parameters
function_id(required)queries(optional)search(optional)total(optional) – whenfalse, skips count calculation