openwisp_create_device_location
Assign a location to a device by specifying device ID and location ID. This links devices to physical or logical locations for better management.
Instructions
[Category: Geo & Locations] Assign a location object 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_create_device_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Device UUID or ID | |
| location | Yes | Location UUID or ID |