-
Incident report
-
Resolution: Won't fix
-
Minor
-
None
-
2.0.4
-
None
I am creating user via API. Example is taken from https://www.zabbix.com/documentation/2.0/manual/appendix/api/user/create
User used to comminicating with Zabbix API is a "Zabbix Super Admin".
usrgrpid = 18 and mediatypeid = 1 both exists.
I am sending example json:
{
"jsonrpc":"2.0",
"method":"user.create",
"params":{
"alias":"John13",
"name":"john",
"surname":"doe",
"passwd":"Doe123",
"autologout":"300",
"type":"1",
"usrgrps":
,
"user_medias":
},
"auth":"7ba6d6f241cf01ce0446febb85c88386",
"id":2
}
Response is:
{
"jsonrpc":"2.0",
"error":
,
"id":2
}
The problem seems to be section "user_medias" - without it user is created without error.