Áú»¢¶Ä²©

This is the documentation page for an unsupported version of Áú»¢¶Ä²©.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.

????.?????

?????

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
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": {
                "itemids": [
                    "10092"
                ]
            },
            "????": 1
       }

???? ???? ????

???? ?? ?? ????? ????? ????? ????? ?????. ?? ???? ????? ???? ??????, ??? ???? ????? ????? ???? ???? ????? ??? hostid.

?????????:

{
            "jsonrpc": "2.0",
            "method": "item.update",
            "params": {
                "name": "?? ???? ???? ??????",
                "master_itemid": "25562",
                "itemid": "189019"
            },
            "auth": "700ca65537074ec963db7efabda78259",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": {
                "itemids": [
                    "189019"
                ]
            },
            "????": 1
       }

???? ???? ???? HTTP

???? ????? ??? ????.

?????????:

{
            "jsonrpc": "2.0",
            "method": "item.update",
            "params": {
                "itemid": "23856",
                "allow_traps": 1
            },
            "auth": "700ca65537074ec963db7efabda78259",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": {
                "itemids": [
                    "23856"
                ]
            },
            "????": 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",
            "?????": {
                "itemids": [
                    "23856"
                ]
            },
            "????": 1
       }

????? ???? ??????

???? ???? ?????? ??????? ??? ???? ??????? ??????? ?????? ?? ??????? ?????.

?????????:

{
            "jsonrpc": "2.0",
            "method": "item.update",
            "params": {
                "itemid": "23865",
                "???????": [],
                "script": "Áú»¢¶Ä²©.Log(3, 'Log test');\nreturn 1;"
            },
            "auth": "700ca65537074ec963db7efabda78259",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": {
                "itemids": [
                    "23865"
                ]
            },
            "????": 1
       }

????

CItem::update()? ???? ui/include/classes/api/services/CItem.php.