object script.create(object/array scripts)
This method allows to create new scripts.
This method is only available to Super admin user type. Permissions to call the method can be revoked in user role settings. See User roles for more information.
(object/array) Scripts to create.
The method accepts scripts with the standard script properties.
(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 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.
CScript::create() in ui/include/classes/api/services/CScript.php.