modl.gg

Migration Progress

Update or check migration processing progress.

POST /v1/minecraft/migration/progress

Report or update the progress of an ongoing migration. This endpoint is used to track how many records have been processed and to communicate the current status of the migration operation.

Authentication

Requires the X-API-Key header with your server's API key.

X-API-Key: your-api-key-here

Request

Headers

HeaderTypeRequiredDescription
X-API-KeystringYesYour server's API key.
Content-TypestringYesMust be application/json.

Body

FieldTypeRequiredDescription
statusstringYesThe current status of the migration (e.g., processing, completed, failed).
messagestringYesA human-readable message describing the current progress.
processedintegerNoThe number of records processed so far.
totalintegerNoThe total number of records to process.
{
  "status": "processing",
  "message": "Importing player records...",
  "processed": 500,
  "total": 2000
}

Response

200 OK

{
  "success": true
}

Error Responses

Status CodeDescription
400Invalid request body. Missing required fields or invalid status value.
401Missing or invalid API key.
429Rate limit exceeded.
500Internal server error.

On this page