openwisp_update_device_location
Change a device's location in OpenWISP by providing its ID and the new location ID.
Instructions
[Category: Geo & Locations] Update the location assigned to a device. (HTTP PUT /api/v1/controller/device/{id}/location/)
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": {
"id": "<id>",
"location": "<location>"
},
"name": "openwisp_update_device_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Device UUID or ID | |
| location | Yes | Location UUID or ID |