openwisp_create_device_connection
Create a connection for an OpenWISP device by providing the device ID, a connection name, and an optional credential UUID.
Instructions
[Category: Devices & Controller] Create a connection for a device. (HTTP POST /api/v1/controller/device/{id}/connection/)
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>",
"name": "<name>"
},
"name": "openwisp_create_device_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Device UUID or ID | |
| name | Yes | Connection name | |
| credential | No | Credential UUID |