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 → Generate installer

AI-generated

Summary

Generate an agent installer for a specified organization and location with customizable installer type and usage limits.

Inputs

  • organizationId — Numeric ID of the organization for which to generate the installer.
  • locationId — Numeric ID of the location within the organization.
  • installerType — Type/format of the agent installer to generate, such as WINDOWS_MSI, MAC_DMG, LINUX_DEB, etc.
  • usageLimit — Optional usage limit to restrict the installer.
  • content — Additional JSON payload content to include in the generation request.
  • customBody — Arbitrary JSON object to customize or override the request body when generating the installer.
  • headerFilters — Custom HTTP headers to include in the API request.
  • queryFilters — Query string parameters to include in the API request.
  • debug — Enable debug mode to include full request details in the output for troubleshooting.
  • timeout — Milliseconds to wait for the server response before aborting the request.

Output shape

a JSON object representing the generated installer details or download link

The response contains the installer information according to the NinjaOne API's /v2/organization/generate-installer endpoint. Debug information is optionally included if enabled. Pagination and batching settings are available but typically unnecessary for this single generation call.

Examples

Example 1: Generate a Windows MSI installer for organization 123 at location 456 with a usage limit of 10.

Set organizationId=123, locationId=456, installerType='WINDOWS_MSI', usageLimit=10 in Additional Fields.

Links

Discussion