Zum Hauptinhalt springen

Create a backup schedule for a Project

POST/projects/{projectId}/backup-schedules/
v2
POST
backup-create-project-backup-schedule

Request

  • projectIdstring (uuid)
    required

    ID of the Project to create a BackupSchedule for.

Responses

application/json

Created

  • createdAtstring (date-time)
  • descriptionstring

    Description of this ProjectBackupSchedule.

  • idstring (uuid)
    required

    ID of this ProjectBackupSchedule.

  • isSystemBackupboolean
    required

    True if this ProjectBackupSchedule was created and is managed by mittwald.

  • projectIdstring (uuid)
    required

    ID of the Project this ProjectBackupSchedule belongs to.

  • schedulestring
    required

    Execution schedule in crontab notation.

  • ttlstring

    TTL of the ProjectBackupSchedule as time string.

  • updatedAtstring (date-time)

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{"description":"string","schedule":"5 4 * * *","ttl":"7d"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/projects/f0f86186-0a5a-45b2-aa33-502777496347/backup-schedules