---
title: "Make object enter or leave maintenance mode"
method: POST
path: "/v1/objects/{object-id}/set-maintenance"
tags: ["Objects"]
---

# Make object enter or leave maintenance mode

`POST /v1/objects/{object-id}/set-maintenance`

## Path parameters

- `object-id` integer, required

## Request body

- object
  - `maintenance` boolean — true - if object should enter maintenance mode, false - if leave
  - `comments` string — Optional maintenance comments

## Response `200`

Maintenance mode changed successfully

## Other responses

- `400` — Invalid arguments
- `401` — Unauthorized
- `403` — User does not have control access to given object
- `404` — Object with given ID does not exist

## Changes

- **2026-05-08** `c6aaf3632e48` — 1 breaking, 2 warning, 1 info
  - removed the success response with the status `204`
  - removed the request property `endTime`
  - removed the request property `startTime`
  - added the success response with the status `200`

[Change history](https://skmtc.dev/netxms/apis/netxms-api/changes/v1/objects/:object-id/set-maintenance/post.md)

---

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