NinjaOne icon

NinjaOne

Consume the NinjaOne RMM API

Device → Approve / Reject

AI-generated

Summary

Approve or reject pending devices by specifying their device IDs and the desired approval mode.

Inputs

  • authentication — Select the authentication method, either OAuth2 or Client Credentials.
  • approvalMode (required) — Choose whether to approve or reject the specified devices.
  • deviceIds (required) — Provide a comma-separated list of device IDs to be approved or rejected.

Output shape

a single response object confirming the operation's success or error details

The response contains confirmation of the approval or rejection action. If multiple device IDs are provided, the system processes them in bulk. Errors are returned in the standard NodeApiError format.

Examples

Example 1: Approve devices 101, 102, and 103

Set 'approvalMode' to 'APPROVE' and 'deviceIds' to '101,102,103'. The node calls the POST /api/v2/devices/approval/APPROVE endpoint with the devices list.

Links

Discussion