Update Location Custom Fields
ninjaone_update_location_custom_fieldsUpdate custom field values on a single NinjaOne location without altering other fields, then return before-and-after values for verification.
Instructions
Set custom field values on one location. Only the fields in body change. Returns before and after. Body (object) per NinjaOne updateNodeAttributeValues_2. Body maps custom field names to values. 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": {
"location_id": "<location_id>",
"body": "<body>",
"confirm": "<confirm>"
},
"name": "ninjaone_update_location_custom_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | No | Organization id, or a unique part of its name (case-insensitive). Overrides NINJAONE_ORG_ID. An ambiguous name is refused with the candidates; call ninjaone_list_organizations to see them all. | |
| body | Yes | Request body as NinjaOne documents it for updateNodeAttributeValues_2. 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. | |
| location_id | Yes | Location id (from ninjaone_list_org_locations). |