0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Scheduler → Schedule Task

AI-generated

Overview

The Scheduler resource with the Schedule Task operation allows users to create scheduled HTTP tasks that trigger at specified times using cron expressions. This node is useful for automating repetitive web requests such as triggering webhooks, APIs, or other HTTP endpoints on a defined schedule.

Common scenarios include:

  • Sending daily reports or notifications by calling a webhook every morning.
  • Periodically syncing data between systems by scheduling API calls.
  • Automating maintenance tasks or reminders via HTTP requests.

For example, you could schedule a task named "Daily Report Task" to send a POST request with a JSON payload to your reporting service webhook every day at 9 AM.

Properties

Name Meaning
Task Name Descriptive name for the scheduled task
Cron Schedule Cron expression defining when the task should run (e.g., 0 9 * * * for daily at 9 AM)
Webhook URL The URL to call when the scheduled task executes
HTTP Method HTTP method to use for the request; options: GET, POST, PUT, DELETE
Request Payload JSON payload to send with the HTTP request

Output

The node outputs JSON data representing the result of scheduling the task. This typically includes confirmation details such as the task ID, status, and any metadata returned from the scheduling service.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential to authenticate with the external scheduling service at https://prod.0codekit.com.
  • The node sends a POST request to the /operator/scheduler/add endpoint of the service to create the scheduled task.
  • Proper network access to the external service and the target webhook URL is necessary.

Troubleshooting

  • Invalid Cron Expression: If the cron schedule is malformed, the scheduling service may reject the task. Verify the cron syntax is correct.
  • Webhook URL Unreachable: Ensure the provided URL is accessible from the scheduling service environment.
  • Authentication Errors: Confirm that the API key credential is valid and has permissions to create scheduled tasks.
  • Payload Format Issues: The JSON payload must be valid JSON; otherwise, the request may fail.
  • HTTP Method Restrictions: Some endpoints may not support all HTTP methods; verify compatibility.

Links and References

Discussion