---
title: "Set Resync Schedule"
method: PUT
path: "/api/v1/migrations/{migration_id}/resync-schedule"
tags: ["migrations"]
---

# Set Resync Schedule

`PUT /api/v1/migrations/{migration_id}/resync-schedule`

## Request

- Base URL: `https://api.mengi.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mengi.cloud/api/v1/migrations/{migration_id}/resync-schedule`
- Auth: none declared

Set or clear the automatic re-sync schedule for a migration.

The worker re-runs the migration whenever the interval has elapsed
since its last run, as long as it is in completed state.

## Path parameters

- `migration_id` string, uuid, required

## Request body

- MigrationResyncSchedule: Auto re-sync schedule; None disables it.
  - `interval_minutes` integer, nullable

## Response `200`

Successful Response

- MigrationResponse
  - `id` string, uuid, required
  - `user_id` string, uuid, required
  - `organization_id` string, uuid, nullable
  - `source_cluster_id` string, uuid, required
  - `target_cluster_id` string, uuid, required
  - `namespace` string, required
  - `target_namespace` string, nullable
  - `import_workloads` boolean, required
  - `status` 'pending' | 'installing_velero_source' | 'backing_up' | 'installing_velero_target' | 'restoring' | 'importing_workloads' | 'cleaning_up' | 'completed' | 'failed' | 'cancelled', required
  - `progress_message` string, nullable
  - `backup_name` string, nullable
  - `restore_name` string, nullable
  - `backup_size_bytes` integer, nullable
  - `pvc_count` integer, nullable
  - `resource_count` integer, nullable
  - `error_message` string, nullable
  - `resync_interval_minutes` integer, nullable
  - `started_at` string, date-time, nullable
  - `completed_at` string, date-time, nullable
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengi/apis/mengi-cloud.md) · [All operations](https://skmtc.dev/mengi/apis/mengi-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/mengi/apis/mengi-cloud/revisions/4ae9b375cdbb?raw)
