custom_api_request
Send custom API requests directly to the UniFi controller. Specify a URL path, HTTP method, and optional JSON payload to perform operations not available through standard tools.
Instructions
Make a custom API request to the controller. Use with care.
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": {
"path": "<path>"
},
"name": "custom_api_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | URL path suffix, must start with '/' | |
| method | No | HTTP method: GET, POST, PUT, DELETE, or PATCH | GET |
| payload | No | JSON payload for POST/PUT/PATCH requests |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |