Marks the job as cancelled and returns its status. Returns 404 for an unknown job. Super admin only.
POST
/admin/tags/migrate/{jobId}/cancel
curl \
--request POST 'http://api.example.com/admin/tags/migrate/{jobId}/cancel' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": {
"jobId": "65a1b2c3d4e5f6a7b8c9d0f2",
"status": "running",
"collections": [
{
"name": "devicemessages",
"total": 50000,
"processed": 12000,
"skipped": 40,
"errored": 0,
"startedAt": "2026-01-15T10:15:00.000Z",
"completedAt": "2026-05-04T09:42:00Z"
}
],
"lastError": "string"
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}