toggleBackupLock abstract method

  1. @POST('/api/client/servers/{serverId}/backups/{backupId}/lock')
Future<FractalData<Backup>> toggleBackupLock({
  1. @Path() required String serverId,
  2. @Path() required String backupId,
  3. @CancelRequest() CancelToken? cancelToken,
  4. @SendProgress() @experimental ProgressCallback? onSendProgress,
  5. @ReceiveProgress() @experimental ProgressCallback? onReceiveProgress,
})

Lock a Backup to protect it from automated or accidental deletions

If the Backup is already locked, this will unlock it instead

Implementation

@POST('/api/client/servers/{serverId}/backups/{backupId}/lock')
Future<FractalData<Backup>> toggleBackupLock({
  @Path() required String serverId,
  @Path() required String backupId,
  @CancelRequest() CancelToken? cancelToken,
  @SendProgress() @experimental ProgressCallback? onSendProgress,
  @ReceiveProgress() @experimental ProgressCallback? onReceiveProgress,
});