string apiinfo.version(array)
This method allows to retrieve the version of the Zabbix API.
auth
parameter in the JSON-RPC request.
(array)
The method accepts an empty array.
(string)
Returns the version of the Zabbix API.
Retrieve the version of the Zabbix API.
Request:
{ "jsonrpc": "2.0", "method": "apiinfo.version", "params": [], "id": 1 }
Response:
{ "jsonrpc": "2.0", "result": "4.0.0", "id": 1 }
CAPIInfo::version() in ui/include/classes/api/services/CAPIInfo.php.