对象 screenitem.updatebyposition(array screenItems)
更新聚合图形给定单元格内的聚合图形项目方法,如果该单元格内容为空,则创建一个新的聚合图形项目.
(array)
Screen item properties 更新.
必须定义每个聚合图形项目的x
, y
和 screenid
的属性,其他属性可选,只更新聚合图形定义的属性,没有定义的属性将不改变.
(对象)
返回更新和创建的聚合图形属性screenitemids
的对象ID.
改变位于聚合图形左上角聚合图形元素的资源ID.
Request:
{
"jsonrpc": "2.0",
"method": "screenitem.updatebyposition",
"params": [
{
"screenid": "16",
"x": 0,
"y": 0,
"resourceid": "644"
}
],
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
Response:
CScreenItem::update() in frontends/php/include/classes/api/services/CScreenItem.php.