Properties
NAME | TYPE | DESCRIPTION |
$id | string | Function ID. |
$createdAt | string | Function creation date in ISO 8601 format. |
$updatedAt | string | Function update date in ISO 8601 format. |
execute | array | Execution permissions. |
name | string | Function name. |
enabled | boolean | Function enabled. |
runtime | string | Function execution runtime. |
deployment | string | Function's active deployment ID. |
vars | array | Function variables. Can be one of: |
events | array | Function trigger events. |
schedule | string | Function execution schedult in CRON format. |
scheduleNext | string | Function's next scheduled execution time in ISO 8601 format. |
schedulePrevious | string | Function's previous scheduled execution time in ISO 8601 format. |
timeout | integer | Function execution timeout in seconds. |
Example
JSON
{
"$id": "5e5ea5c16897e",
"$createdAt": "2020-10-15T06:38:00.000+00:00",
"$updatedAt": "2020-10-15T06:38:00.000+00:00",
"execute": "users",
"name": "My Function",
"enabled": false,
"runtime": "python-3.8",
"deployment": "5e5ea5c16897e",
"vars": [
{
"$id": "5e5ea5c16897e",
"$createdAt": "2020-10-15T06:38:00.000+00:00",
"$updatedAt": "2020-10-15T06:38:00.000+00:00",
"key": "API_KEY",
"value": "myPa$$word1",
"functionId": "5e5ea5c16897e"
}
],
"events": "account.create",
"schedule": "5 4 * * *",
"scheduleNext": "2020-10-15T06:38:00.000+00:00",
"schedulePrevious": "2020-10-15T06:38:00.000+00:00",
"timeout": 15
}
JSON
{
"_id": "5e5ea5c16897e",
"_createdAt": "2020-10-15T06:38:00.000+00:00",
"_updatedAt": "2020-10-15T06:38:00.000+00:00",
"execute": "users",
"name": "My Function",
"enabled": false,
"runtime": "python-3.8",
"deployment": "5e5ea5c16897e",
"vars": [
{
"_id": "5e5ea5c16897e",
"_createdAt": "2020-10-15T06:38:00.000+00:00",
"_updatedAt": "2020-10-15T06:38:00.000+00:00",
"key": "API_KEY",
"value": "myPa$$word1",
"functionId": "5e5ea5c16897e"
}
],
"events": "account.create",
"schedule": "5 4 * * *",
"scheduleNext": "2020-10-15T06:38:00.000+00:00",
"schedulePrevious": "2020-10-15T06:38:00.000+00:00",
"timeout": 15
}