# Script object

The following objects are directly related to the `script` API.

### Script

The script object has the following properties.

|Property|Type|Description|
|--------|----|-----------|
|scriptid|string|*(readonly)* ID of the script.|
|**command**<br>(required)|string|Command to run.|
|**name**<br>(required)|string|Name of the script.|
|confirmation|string|Confirmation pop up text. The pop up will appear when trying to run the script from the Zabbix frontend.|
|description|string|Description of the script.|
|execute\_on|integer|Where to run the script.<br><br>Possible values:<br>0 - run on Zabbix agent;<br>1 - *(default)* run on Zabbix server.|
|groupid|string|ID of the host group that the script can be run on. If set to 0, the script will be available on all host groups.<br><br>Default: 0.|
|host\_access|integer|Host permissions needed to run the script.<br><br>Possible values:<br>2 - *(default)* read;<br>3 - write.|
|type|integer|Script type.<br><br>Possible values:<br>0 - *(default)* script;<br>1 - IPMI.|
|usrgrpid|string|ID of the user group that will be allowed to run the script. If set to 0, the script will be available for all user groups.<br><br>Default: 0.|
