update_catalog_item_variable
Modify catalog item variables in ServiceNow by updating labels, mandatory status, default values, descriptions, order, and other attributes to streamline catalog management.
Instructions
Update a catalog item variable
Input Schema
Name | Required | Description | Default |
---|---|---|---|
default_value | No | Default value for the variable | |
description | No | Description of the variable | |
help_text | No | Help text to display with the variable | |
label | No | The display label for the variable | |
mandatory | No | Whether the variable is required | |
max | No | Maximum value for numeric fields | |
max_length | No | Maximum length for string fields | |
min | No | Minimum value for numeric fields | |
order | No | Display order of the variable | |
reference_qualifier | No | For reference fields, the query to filter reference options | |
variable_id | Yes | The sys_id of the variable to update |
Input Schema (JSON Schema)
{
"description": "Parameters for updating a catalog item variable.",
"properties": {
"default_value": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Default value for the variable",
"title": "Default Value"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Description of the variable",
"title": "Description"
},
"help_text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Help text to display with the variable",
"title": "Help Text"
},
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The display label for the variable",
"title": "Label"
},
"mandatory": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Whether the variable is required",
"title": "Mandatory"
},
"max": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Maximum value for numeric fields",
"title": "Max"
},
"max_length": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Maximum length for string fields",
"title": "Max Length"
},
"min": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Minimum value for numeric fields",
"title": "Min"
},
"order": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Display order of the variable",
"title": "Order"
},
"reference_qualifier": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "For reference fields, the query to filter reference options",
"title": "Reference Qualifier"
},
"variable_id": {
"description": "The sys_id of the variable to update",
"title": "Variable Id",
"type": "string"
}
},
"required": [
"variable_id"
],
"title": "UpdateCatalogItemVariableParams",
"type": "object"
}