mittwald icon

mittwald

Interact with mittwald mStudio API

Actions100

Overview

This node operation updates an existing Project Backup Schedule in the Backup resource. It allows users to modify details such as the description, execution schedule (in crontab format), and the time-to-live (TTL) of a backup schedule associated with a project. This is useful for automating and managing backup routines by adjusting when backups occur and how long they are retained.

Practical examples include:

  • Changing the frequency of backups from daily to weekly.
  • Updating the description to better reflect the purpose or contents of the backup schedule.
  • Adjusting the TTL to retain backups for a longer or shorter period depending on storage policies.

Properties

Name Meaning
Project Backup Schedule Id The unique identifier of the ProjectBackupSchedule to be updated. This is required to specify which schedule to update.
Description A textual description of the ProjectBackupSchedule. Note that descriptions for system backup schedules cannot be changed.
Schedule The execution schedule expressed in crontab notation (e.g., "5 4 * * *" means at 04:05 every day). System backup schedules must have a daily once schedule.
Ttl Time-to-live for the ProjectBackupSchedule, specified as a time string (e.g., "7d" for seven days). This defines how long backups are retained.

Output

The node outputs JSON data representing the updated ProjectBackupSchedule object after the update operation completes successfully. This typically includes fields such as the ID, description, schedule, TTL, and possibly metadata about the update status.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authenticating with the mittwald mStudio API.
  • The node uses the mittwald mStudio API endpoint https://api.mittwald.de.
  • Proper configuration of the API authentication credentials within n8n is necessary.
  • The node expects the input properties to be correctly formatted, especially the cron schedule and TTL strings.

Troubleshooting

  • Invalid Project Backup Schedule Id: If the provided ID does not exist or is incorrect, the API will likely return an error indicating the schedule was not found. Verify the ID before running the node.
  • Immutable Description for System Backups: Attempting to change the description of a system backup schedule (marked as isSystemBackup) will fail. Ensure you only update descriptions for non-system backups.
  • Incorrect Cron Format: Providing an invalid cron expression in the Schedule property may cause scheduling errors or API rejection. Validate cron syntax before submission.
  • TTL Format Errors: The TTL must be a valid time string (e.g., "7d", "24h"). Invalid formats may cause the API to reject the request.
  • Authentication Failures: Ensure the API key credential is valid and has sufficient permissions to update backup schedules.
  • API Rate Limits or Downtime: Network issues or API rate limits can cause failures; retry or check API status if persistent errors occur.

Links and References

  • Crontab Guru - Cron Expression Editor — Useful for creating and validating cron schedules.
  • mittwald mStudio API documentation (refer to your internal or official API docs for detailed endpoints and payloads).
  • n8n Documentation on Credentials and HTTP Request nodes for setting up API authentication.

Discussion