Update a Script Template
Modifies an existing script template. This action is only permitted on templates that are private to the user’s organization and were created by the user. Global templates are read-only.
Authorizations
Altostrat SDX API uses JWT Bearer tokens for authentication. Obtain a token via the Authentication API and include it in the Authorization header as 'Bearer {token}'.
Path Parameters
The unique identifier for the script template to update.
"d9e5b5e3-3e8a-4c2f-8d2a-7e6e5a4b1c0d"
Body
The updated name for the template.
100"Disable Guest WiFi (Scheduled)"
The updated description.
200"A script to disable the guest WiFi interface nightly."
The updated script content.
5000"/interface wireless disable [find name=\"guest-wifi\"];"
Key-value metadata.
{
"department": "IT-Security",
"reviewed": "2025-10-29"
}Response
The script template was updated successfully.
The unique identifier for the script template.
"d9e5b5e3-3e8a-4c2f-8d2a-7e6e5a4b1c0d"
The name of the script template.
"Standard Firewall Setup"
A brief description of what the template does.
"Applies the standard set of corporate firewall rules to a device."
The full script content of the template.
"/ip firewall filter add chain=input action=accept connection-state=established,related"
A key-value map for storing arbitrary metadata.
{ "version": "1.2", "compliance": "PCI-DSS" }The user ID of the template's author. Null for global templates.
"auth0|642b7f3b8b3b3e3e3e3e3e3e"
True if the template is global and cannot be edited by the user.
false
The timestamp when the template was created.
"2025-10-29T10:30:00.000000Z"
The timestamp when the template was last updated.
"2025-10-29T11:00:00.000000Z"