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}'.
Body
The name for the new template.
100"Disable Guest WiFi"
A description of the template's purpose.
200"A script to disable the guest WiFi interface during off-hours."
The RouterOS script content.
5000"/interface wireless disable [find name=\"guest-wifi\"]"
Key-value metadata. Keys up to 50 chars, values up to 1000.
{ "department": "IT-Security" }Response
The script template was created 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"