object screenitem.update(object/array screenItems)
This method allows to update existing screen items.
(object/array)
Screen item properties to be updated.
The screenitemid
property must be defined for each screen item, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.
(object)
Returns an object containing the IDs of the updated screen items under the screenitemids
property.
Set the width of the screen item to 500px and height to 300px.
Request:
{
"jsonrpc": "2.0",
"method": "screenitem.update",
"params": {
"screenitemid": "20",
"width": 500,
"height": 300
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
Response:
CScreenItem::update() in frontends/php/include/classes/api/services/CScreenItem.php.