This method allows to update existing scripts. 此方法更新已存在的脚本

    (object/array) to be updated.

    (object) Returns an object containing the IDs of the updated scripts under the property. (object)返回一个对象包含在scriptids属性下更新脚本的IDs

    Change script command 改变一个脚本的命令

    Change the command of the script to “/bin/ping -c 10 {HOST.CONN} 2>&1”. 改变一个脚本的命令为“/bin/ping -c 10 {HOST.CONN} 2>&1”.

    Response:

    1. {
    2. "jsonrpc": "2.0",
    3. "1"
    4. ]
    5. },

    CScript::update() in frontends/php/include/classes/api/services/CScript.php.