update_script_include
Modify an existing ServiceNow script include by updating its code, description, API name, access settings, or activation status to maintain custom business logic.
Instructions
Update an existing script include in ServiceNow
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| access | No | Access level of the script include | |
| active | No | Whether the script include is active | |
| api_name | No | API name of the script include | |
| client_callable | No | Whether the script include is client callable | |
| description | No | Description of the script include | |
| script | No | Script content | |
| script_include_id | Yes | Script include ID or name |
Input Schema (JSON Schema)
{
"properties": {
"access": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Access level of the script include",
"title": "Access"
},
"active": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Whether the script include is active",
"title": "Active"
},
"api_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "API name of the script include",
"title": "Api Name"
},
"client_callable": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Whether the script include is client callable",
"title": "Client Callable"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Description of the script include",
"title": "Description"
},
"script": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Script content",
"title": "Script"
},
"script_include_id": {
"description": "Script include ID or name",
"title": "Script Include Id",
"type": "string"
}
},
"required": [
"script_include_id"
],
"type": "object"
}