[ZBXNEXT-1508] It should be simple way to fill Screen with Screenitems without unnecessary parameters using JSON API Created: 2012 Nov 11  Updated: 2012 Dec 24

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: API (A)
Affects Version/s: 2.0.3
Fix Version/s: None

Type: Change Request Priority: Minor
Reporter: ojab Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: api, screens
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Right now request like:

{
"jsonrpc": "2.0",
"params": {
"screenid": "1",
"screenitems": [

{ "resourceid": "6794" }

,

{ "resourceid": "6801" }

,
"name": "My screen"
},
"method": "screen.update",
"auth": "aa90f5246c6b47e43806ae698ddafa80",
"id": 7
}

will make a screen with only item "6794" on (0,0), but it should make screen with all mentioned resourceids in sequence.

In many cases all given items is needed on the screen, without any particular order/etc.



 Comments   
Comment by Oleksii Zagorskyi [ 2012 Nov 12 ]

Partially related issue ZBX-5562.

But in the example above you should at least add REQUIRED fields like:
"resourcetype": "0",
"resourceid": "870",

What is the sense to create screenitems without specifying type&ID ?

I'd agree that it could be useful to have parameters:
"x": "0",
"y": "0",
as optional if creating new screenitems.
Then there should be simple logic to automatically calculate them.

Generated at Fri Apr 04 06:41:29 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.