-
Incident report
-
Resolution: Won't fix
-
Trivial
-
None
-
7.0.6
-
None
-
None
-
Debian 12 with Zabbix 7.0.6
Steps to reproduce:
POST Request to create a new Host entry like
curl --request POST \ --url https://<Zabbix_URL>/api_jsonrpc.php \ --header 'Authorization: Bearer <Token>' \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "method": "host.create", "params": { "host": "Testöäü", "interfaces": [ { "type": 2, "main": 1, "useip": 0, "ip": "", "dns": "192.168.0.100", "port": "10050" } ], "groups": [ { "groupid": "123" } ], "templates": [ { "templateid": "12345" } ] }, "id": 1 }'
Result:
The following Error message comes up:
{ "jsonrpc": "2.0", "error": { "code": -32602, "message": "Invalid params.", "data": "Incorrect characters used for host name \"Testöäü\"." }, "id": 1 }
Expected:
I expect the host to be created, same as on the web form. I also tried to set the charset to UTF-8 on the Content-Type header, but the error is the same.