Update Device
ninjaone_update_deviceUpdate a NinjaOne device's display name, user data, policy, location, role, or organization and return before/after values; requires write mode and explicit confirmation.
Instructions
Update one device's display name, user data, policy, location, role or organization. Returns before and after. Body (object) per NinjaOne updateDevice. Fields: displayName (string), userData (object), nodeRoleId (integer), policyId (integer), organizationId (integer), locationId (integer), warranty (object). Needs NINJAONE_MODE=write and confirm: true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device_id": "<device_id>",
"body": "<body>",
"confirm": "<confirm>"
},
"name": "ninjaone_update_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body as NinjaOne documents it for updateDevice. Field names are NinjaOne's (camelCase). | |
| confirm | Yes | Must be exactly true. States that this call changes live data. There is no undo from this server. | |
| device_id | Yes | Device id (from ninjaone_list_devices or ninjaone_search_devices). |