object item.update(object/array items)
???? ?? ?????? ????? ?????? ??????.
?? ???? ????? ????? ??????? ??? ?-API ?? Áú»¢¶Ä²©.
???? ?? ????? ?? ?-Admin ?-Super Admin ???? ???????. ???? ???? ?????? ????? ????? ?????? ????? ??????. ??? ????? ??????? ????? ????.
(???????/????)
??????? ???? ??? ?????.
?? ?????? ?? ??????? 'itemid' ???? ?? ????, ?? ???? ????? ?? ???????????. ?? ????????? ????? ???????, ???? ????? ?????? ??? ?????.
????? ???????? ???? ?????????, ????? ???? ?? ???????? ?????.
????? | ??? | ????? |
---|---|---|
preprocessing | ???? | ????? ????? ?? ???? ???????? ?????? ???????? ?????? ?????? ????????. |
tags | ???? | ???? tags. |
(object)
?????? ??????? ????? ?? ?????? ?? ??????? ????????? ??? ???? itemids
.
???? ????, ?????, ???? ?? ?????? ??? ?-"0".
?????????:
{
"jsonrpc": "2.0",
"method": "item.update",
"params": {
"itemid": "10092",
"?????": 0
},
"auth": "700ca65537074ec963db7efabda78259",
"????": 1
}
????????:
???? ?? ?? ????? ????? ????? ????? ?????. ?? ???? ????? ???? ??????, ??? ???? ????? ????? ???? ???? ????? ??? hostid.
?????????:
{
"jsonrpc": "2.0",
"method": "item.update",
"params": {
"name": "?? ???? ???? ??????",
"master_itemid": "25562",
"itemid": "189019"
},
"auth": "700ca65537074ec963db7efabda78259",
"????": 1
}
????????:
???? ????? ??? ????.
?????????:
{
"jsonrpc": "2.0",
"method": "item.update",
"params": {
"itemid": "23856",
"allow_traps": 1
},
"auth": "700ca65537074ec963db7efabda78259",
"????": 1
}
????????:
???? ???? ?? ??? ????? ????? ?? ???? "?????".
?????????:
{
"jsonrpc": "2.0",
"method": "item.update",
"params": {
"itemid": "23856",
"????? ?????": [
{
"???": 13,
"params": "\n100",
"error_handler": 1,
"error_handler_params": ""
}
]
},
"auth": "700ca65537074ec963db7efabda78259",
"????": 1
}
????????:
???? ???? ?????? ??????? ??? ???? ??????? ??????? ?????? ?? ??????? ?????.
?????????:
{
"jsonrpc": "2.0",
"method": "item.update",
"params": {
"itemid": "23865",
"???????": [],
"script": "Áú»¢¶Ä²©.Log(3, 'Log test');\nreturn 1;"
},
"auth": "700ca65537074ec963db7efabda78259",
"????": 1
}
????????:
CItem::update()? ???? ui/include/classes/api/services/CItem.php.