---
title: "Gets the current in-memory state of all maintenance tasks."
method: GET
path: "/api/v{version}/maintenance/status"
tags: ["Maintenance"]
---

# Gets the current in-memory state of all maintenance tasks.

`GET /api/v{version}/maintenance/status`

## Path parameters

- `version` string, required

## Response `200`

Returns the current state of all maintenance tasks.

- MaintenanceTaskState[]
  - `type` 'LocationMigration' | 'CoordinateMigration' | 'UserMerge' — Represents the type of a maintenance task.
  - `status` 'Idle' | 'Running' | 'Completed' | 'Failed' — Represents the status of a maintenance task.
  - `affectedCount` integer, nullable — Gets or sets the number of records affected by the task.
  - `message` string, nullable — Gets or sets the error message if the task failed.
  - `startedAt` string, date-time, nullable — Gets or sets when the task started.
  - `completedAt` string, date-time, nullable — Gets or sets when the task completed.

---

[API](https://skmtc.net/geoadmin/apis/boreholes-rest-api-v2.md) · [All operations](https://skmtc.net/geoadmin/apis/boreholes-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geoadmin/boreholes-rest-api-v2/revisions/e6d0b4ee0f52/schema)
