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

# Change object's maintenance state

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

Change object's maintenance state

## Path parameters

- `object-id` string, required

## Request body

- object
  - `maintenance` boolean — true - if object should enter maintenance, and flase if object should leave maintenance
  - `comments` string — optional mintenance comment

## Response `200`

Object maintenance status changed

## Other responses

- `401` — Access denied

## Changes

- **2025-03-31** `0976cbca9648` — 1 info
  - endpoint added
- **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/0976cbca9648/schema)
