---
title: "Set object maintenance state"
method: POST
path: "/objects/{object-id}/set-maintenance"
tags: ["Objects"]
---

# Set object maintenance state

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

Enters or leaves maintenance mode for the specified object

## Path parameters

- `object-id` string, required

## Request body

- object
  - `maintenance` boolean, required — true to enter maintenance, false to leave
  - `comments` string — Optional maintenance comment

## Response `200`

Maintenance state changed

## Other responses

- `401` — Access denied

## Changes

> 15 revisions in range; 12 could not be searched.

- **2023-02-23** `9c09a2aad349` — 1 breaking
  - api path removed without deprecation

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

---

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