Áú»¢¶Ä²©

?????.massadd

?????

object template.massadd(object parameters)

???? ?? ?????? ?????? ?? ????? ???? ????????? ?????? ?- ?????? ??????.

???? ?? ????? ?? ?-Admin ?-Super Admin ???? ???????. ???? ???? ?????? ????? ????? ?????? ????? ??????. ??? ????? ??????? ????? ????.

???????

(object) ??????? ??????? ?? ?????? ?? ??????? ?????? ? ?????????? ?????? ???????.

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

????? ??? ?????
??????
(????)
object/array ?????? ??????.

?????? ?????? ????? ??????? ??????? 'templateid'.
groups object/array ?????? ?????? ??? ?????? ?? ??????? ???????.

??????? ??????? ???? ????? ????? ??????? groupid.
macros object/array ?? ????? ?????? ????? ?? ????? ???? ??????? ???????.
templates_link object/array ?????? ?????? ??????? ???????.

?? ??????? ????? ????? ??????? 'templateid'.

???? ?????

(???????) ?????? ??????? ????? ?? ?????? ?? ??????? ????????? ??? ??????? 'templateids'.

???????

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

???? ?? ????? ??????? "2" ???? ??????.

?????????:

{
            "jsonrpc": "2.0",
            "method": "template.massadd",
            "params": {
                "??????": [
                    {
                        "templateid": "10085"
                    },
                    {
                        "templateid": "10086"
                    }
                ],
                "??????": [
                    {
                        "groupid": "2"
                    }
                ]
            },
            "auth": "038e1d7b1735c6a5436ee9eae095879e",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": {
                "templateids": [
                    "10085",
                    "10086"
                ]
            },
            "????": 1
       }

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

????? ?????? "10106" ?-"10104" ??????.

?????????:

{
            "jsonrpc": "2.0",
            "method": "template.massadd",
            "params": {
                "??????": [
                    {
                        "templateid": "10073"
                    }
                ],
                "??????_?????": [
                    {
                        "templateid": "10106"
                    },
                    {
                        "templateid": "10104"
                    }
                ]
            },
            "auth": "038e1d7b1735c6a5436ee9eae095879e",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": {
                "templateids": [
                    "10073"
                ]
            },
            "????": 1
       }

??? ??

????

CTemplate::massAdd()? ???? ui/include/classes/api/services/CTemplate.php.