---
title: "Get a specific maintenance"
method: GET
path: "/operations/v1/maintenances/{id}"
tags: ["Maintenance"]
---

# Get a specific maintenance

`GET /operations/v1/maintenances/{id}`

Get a specific maintenance by ID.<br>You must have at least one of these scopes: 'maintenances.read, maintenances.manage'.

## Path parameters

- `id` string, required

## Query parameters

- `expand` string[]

## Response `200`

Return all the data for the maintenance.

- MaintenanceModel
  - `id` string, required — The id for the scheduled maintenance
  - `unit` EmbeddedUnitModel, required
    - `id` string, required — The unit id
    - `name` string, nullable — The name for the unit
    - `description` string, nullable — The description for the unit
    - `unitGroupId` string, nullable — The unit group id
  - `from` string, date-time, required — Date and time the scheduled maintenance window starts<br />A date and time (without fractional second part) in UTC or with UTC offset as defined in <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a>
  - `to` string, date-time, required — Date and time the scheduled maintenance window ends<br />A date and time (without fractional second part) in UTC or with UTC offset as defined in <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a>
  - `type` 'OutOfService' | 'OutOfOrder' | 'OutOfInventory', required — The type of maintenance that is planned for the unit. A small repair (OutOfService), a bigger disfunction that does not allow to sell the unit (OutOfOrder) or is it even under construction and should reduce the house count (OutOfInventory)
  - `description` string, nullable — The description text for the maintenance

## Other responses

- `400` — Bad request.
- `401` — You are unauthorized.
- `403` — Forbidden.
- `404` — The Request-URI could not be found.
- `422` — Validation errors in the request body or query params.
- `499` — Client closed request.
- `500` — An unexpected error occurred.
- `503` — The server is currently unavailable. Please try later.

---

[API](https://skmtc.dev/apaleo/apis/apaleo-operations-api.md) · [All operations](https://skmtc.dev/apaleo/apis/apaleo-operations-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apaleo/apaleo-operations-api/revisions/42bfd5d5fecf/schema)
