update_command_template
Update an existing command template in Itential Platform with new commands and validation rules. Target the template by name within a project or global space.
Instructions
Update an existing command template in Itential Platform.
Updates an existing command template with new commands and validation rules. The template must exist in the specified project or global space.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | No | Operating system type (default: empty string) | |
| name | Yes | Name of the command template to update | |
| project | No | Project name containing the template (None for global templates) | |
| commands | Yes | List of commands with their validation rules | |
| pass_rule | No | Pass rule configuration (True=all must pass, False=one must pass) | |
| description | No | Optional description for the template | |
| ignore_warnings | No | Whether to ignore warnings during execution |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upsertedId | Yes | ID of upserted document (if any) | |
| acknowledged | Yes | Whether the update was acknowledged | |
| matchedCount | Yes | Number of documents matched | |
| modifiedCount | Yes | Number of documents modified | |
| upsertedCount | Yes | Number of documents upserted |