This method allows to create new scripts.

    (object/array) Scripts to create.

    (object) Returns an object containing the IDs of the created scripts under the scriptids property. The order of the returned IDs matches the order of the passed scripts.

    Create a script

    Create a script that will reboot a server. The script will require write access to the host and will display a configuration message before running in the frontend.

    Response:

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

    CScript::create() in ui/include/classes/api/services/CScript.php.