Update Device Custom Fields
ninjaone_update_device_custom_fieldsSet custom field values on a single device, changing only fields included in the request and returning before/after values for rollback. Requires write mode and explicit confirmation.
Instructions
Set custom field values on one device. Only the fields in body change. Returns before and after, so a change can be put back. Body (object) per NinjaOne updateNodeAttributeValues. Body maps custom field names to values, e.g. {"assetOwner": "Example User"}. 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_custom_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body as NinjaOne documents it for updateNodeAttributeValues. 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). |