NinjaOne icon

NinjaOne

Ninja One Public API documentation. <br><br>See also: <br> <a href="https://resources.ninjarmm.com/API/Ninja+RMM+Public+API+v2.0.5+Device+Filter+Syntax.pdf">Device Filter syntax</a><br><a href="https://app.ninjarmm.com/apidocs-beta/core-resources/articles/webhooks/overview">Webhooks</a>

Actions309

Management → Windows service control

AI-generated

Summary

Control a Windows service on a specified device by performing actions such as START, PAUSE, STOP, or RESTART on the service identified by service ID.

Inputs

  • id (required) — Numeric identifier of the device where the Windows service is running.
  • serviceId (required) — String identifier of the specific Windows service to control.
  • action — The action to perform on the Windows service; can be START, PAUSE, STOP, or RESTART, defaulting to START if unspecified.

Output shape

a single JSON object containing the API response indicating the result of the service control action

The output may include debug information if the debug option is enabled, containing request URL, headers, query parameters, and body. No pagination applies to this operation.

Links

Discussion