NinjaOne icon

NinjaOne

Consume the NinjaOne RMM API

Actions120

Device → Maintenance

AI-generated

Summary

Sets maintenance mode for a NinjaOne device by sending the device ID and start/end Unix timestamps to the NinjaOne API. Use it to schedule the maintenance interval for a specific device.

Inputs

  • Authentication — Choose OAuth2 (Authorization Code) or Client Credentials; OAuth2 is the default.
  • Device ID (required) — ID of the device to place in maintenance mode.
  • Start (Unix Timestamp) — Start time for the maintenance interval, as a Unix timestamp. Defaults to 0.
  • End (Unix Timestamp) — End time for the maintenance interval, as a Unix timestamp. Defaults to 0.

Output shape

A single item containing the API response, or {"success":true} if the API returns no response body.

The operation sends a PUT request with start and end in the JSON body. Errors are thrown unless Continue On Fail is enabled, in which case an item with an error message is returned.

Links

Discussion