Workers
Cron
Cron endpoint reference.
Get
Get Cron Triggers
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. | |
scriptName | string | Yes | Name of the script, used in URLs and route configuration. |
php
$response = $client->workers()->cron()->get('ACCOUNT_ID', 'SCRIPT_NAME');
Update
Updates Cron Triggers for a Worker.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. | |
scriptName | string | Yes | Name of the script, used in URLs and route configuration. | |
schedules | array | Yes | Values to set on Script schedules. |
php
$response = $client->workers()->cron()->update('ACCOUNT_ID', 'SCRIPT_NAME', []);

