-
Incident report
-
Resolution: Fixed
-
Major
-
1.9.1 (alpha)
-
None
1. attempting to update template screen just returns "true" (wtf ?) and the screen is not updated.
2. updating a normal screen also returns just "true" (even though it works this time). that is not consistent with docs, which imply that screen id should be returned.
(if needed, these problems can be split in individual issues)
documentation at http://www.zabbix.com/documentation/2.0/api/templatescreen is limited and for the update call just links back to 1.8 docs for screen updating.
example session :
Sending: { "jsonrpc":"2.0", "method":"templatescreen.update", "params":[{ "name":"Zabbix translation status", "screenid": "5", "hsize":"4", "vsize":"4", "screenitems":[
{ "resourcetype":"0", "resourceid":"23", "width":"300", "height":"150", "x":"0", "y":"0" },
{ "resourcetype":"0", "resourceid":"29", "width":"300", "height":"150", "x":"1", "y":"0" },
{ "resourcetype":"0", "resourceid":"25", "width":"300", "height":"150", "x":"2", "y":"0" },
{ "resourcetype":"0", "resourceid":"41", "width":"300", "height":"150", "x":"3", "y":"0" },
{ "resourcetype":"0", "resourceid":"17", "width":"300", "height":"150", "x":"0", "y":"1" },
{ "resourcetype":"0", "resourceid":"31", "width":"300", "height":"150", "x":"1", "y":"1" },
{ "resourcetype":"0", "resourceid":"33", "width":"300", "height":"150", "x":"2", "y":"1" },
{ "resourcetype":"0", "resourceid":"13", "width":"300", "height":"150", "x":"3", "y":"1" },
{ "resourcetype":"0", "resourceid":"15", "width":"300", "height":"150", "x":"0", "y":"2" },
{ "resourcetype":"0", "resourceid":"43", "width":"300", "height":"150", "x":"1", "y":"2" },
{ "resourcetype":"0", "resourceid":"27", "width":"300", "height":"150", "x":"2", "y":"2" },
{ "resourcetype":"0", "resourceid":"39", "width":"300", "height":"150", "x":"3", "y":"2" },
{ "resourcetype":"0", "resourceid":"37", "width":"300", "height":"150", "x":"0", "y":"3" },
{ "resourcetype":"0", "resourceid":"19", "width":"300", "height":"150", "x":"1", "y":"3" },
{ "resourcetype":"0", "resourceid":"21", "width":"300", "height":"150", "x":"2", "y":"3" },
{ "resourcetype":"0", "resourceid":"35", "width":"300", "height":"150", "x":"3", "y":"3" }] }], "auth":"82aab11c3f2bb3bb85cbecd137723d8a", "id":2 }
Response Code: 200
Response Body:
ps. i only started to mess with the api because xml export/import was broken... blame yourself