WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation allows scheduling a server restart either immediately or after a specified delay. It is useful for maintaining or updating the server without manual intervention, ensuring minimal downtime by automating restarts. For example, an administrator can schedule a daily restart at a specific time or trigger an immediate restart with a reason and delay.

Use Case Examples

  1. Schedule a daily server restart at 3:00 AM in the Asia/Jakarta timezone.
  2. Restart the server immediately with a reason 'Maintenance update' and a 5000 ms delay.

Properties

Name Meaning
Additional Fields Optional parameters for the server restart operation, including reason for restart, delay in milliseconds, and timezone for scheduling.

Output

JSON

  • json - Response from the server API after scheduling or triggering the restart, containing details about the restart operation status.

Dependencies

  • Requires an API key credential for the WARest WhatsApp REST API to authenticate requests.

Troubleshooting

  • Ensure the API credentials are correctly configured and have the necessary permissions to perform server operations.
  • If the restart does not occur, verify the delay and timezone values are valid and correctly formatted.
  • Common error messages may include 'Operation not implemented' if the operation name is incorrect, or authentication errors if the API key is invalid.

Links

Discussion