Altostrat Studio is here — the AI-native network operations IDE for engineers running production. Terminal, diagrams, runbooks, and Copilot in one workspace. Get started →
curl --request PUT \
--url https://v1.api.altostrat.io/scripts/scheduled/{scheduledScriptId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"make_backup": true,
"description": "Nightly BGP peer maintenance (Updated)",
"script": "/routing bgp peer enable [find name=peer1]",
"sites": [
"site_1AbCdEfGhIjKlMnOpQrStUv"
],
"notify": [
"auth0|5f9d4b3c2e1a0b006f8b4c5d",
"auth0|6a0e5c4d3f2b1c007g9c5d6e"
],
"test_site_id": "site_2Al5z3gXyY5f6Z7h8j9k0l1m"
}
'{
"id": "018f5bda-4690-4432-8472-358b2734f19b",
"created_by": "auth0|642b7f3b8b3b3e3e3e3e3e3e",
"test_site_id": "site_2Al5z3gXyY5f6Z7h8j9k0l1m",
"make_backup": true,
"abort_if_offline": false,
"description": "Weekly firewall rule update",
"summary": "This script adds a firewall filter rule to drop input from a specific address list named \"blacklist\".",
"script": "/ip firewall filter add action=drop chain=input src-address-list=blacklist",
"status": "scheduled",
"authorized_at": "2025-10-30T10:00:00.000000Z",
"cancelled_at": null,
"launch_at": "2025-11-01T02:00:00.000000Z",
"t_minus": "in 2 days",
"started_at": "2025-11-01T02:00:05.000000Z",
"sites": [
"site_1AbCdEfGhIjKlMnOpQrStUv"
],
"notify": [
"auth0|5f9d4b3c2e1a0b006f8b4c5d"
],
"progress": {
"completed": [
"site_1AbCdEfGhIjKlMnOpQrStUv"
],
"failed": [
"site_2BcDeFgHiJkLmNoPqRsTuVw"
],
"pending": [
"site_3CdEfGhIjKlMnOpQrStUvWx"
]
},
"created_at": "2025-10-29T12:44:27.000000Z",
"updated_at": "2025-10-29T13:05:00.000000Z"
}Modifies an existing scheduled script. This is only possible if the script has not yet been launched. Updating a script will reset its authorization status to ‘unauthorized’, requiring re-approval before it can be executed.
curl --request PUT \
--url https://v1.api.altostrat.io/scripts/scheduled/{scheduledScriptId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"make_backup": true,
"description": "Nightly BGP peer maintenance (Updated)",
"script": "/routing bgp peer enable [find name=peer1]",
"sites": [
"site_1AbCdEfGhIjKlMnOpQrStUv"
],
"notify": [
"auth0|5f9d4b3c2e1a0b006f8b4c5d",
"auth0|6a0e5c4d3f2b1c007g9c5d6e"
],
"test_site_id": "site_2Al5z3gXyY5f6Z7h8j9k0l1m"
}
'{
"id": "018f5bda-4690-4432-8472-358b2734f19b",
"created_by": "auth0|642b7f3b8b3b3e3e3e3e3e3e",
"test_site_id": "site_2Al5z3gXyY5f6Z7h8j9k0l1m",
"make_backup": true,
"abort_if_offline": false,
"description": "Weekly firewall rule update",
"summary": "This script adds a firewall filter rule to drop input from a specific address list named \"blacklist\".",
"script": "/ip firewall filter add action=drop chain=input src-address-list=blacklist",
"status": "scheduled",
"authorized_at": "2025-10-30T10:00:00.000000Z",
"cancelled_at": null,
"launch_at": "2025-11-01T02:00:00.000000Z",
"t_minus": "in 2 days",
"started_at": "2025-11-01T02:00:05.000000Z",
"sites": [
"site_1AbCdEfGhIjKlMnOpQrStUv"
],
"notify": [
"auth0|5f9d4b3c2e1a0b006f8b4c5d"
],
"progress": {
"completed": [
"site_1AbCdEfGhIjKlMnOpQrStUv"
],
"failed": [
"site_2BcDeFgHiJkLmNoPqRsTuVw"
],
"pending": [
"site_3CdEfGhIjKlMnOpQrStUvWx"
]
},
"created_at": "2025-10-29T12:44:27.000000Z",
"updated_at": "2025-10-29T13:05:00.000000Z"
}Documentation Index
Fetch the complete documentation index at: https://altostrat.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
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}'.
The unique identifier for the scheduled script to update.
"018f5bda-4690-4432-8472-358b2734f19b"
If true, create a configuration backup before executing the script.
true
A human-readable name for the scheduled script.
"Nightly BGP peer maintenance (Updated)"
The full content of the MikroTik RouterOS script.
"/routing bgp peer enable [find name=peer1]"
An array of site IDs to target.
["site_1AbCdEfGhIjKlMnOpQrStUv"]An array of user IDs to receive notifications.
[
"auth0|5f9d4b3c2e1a0b006f8b4c5d",
"auth0|6a0e5c4d3f2b1c007g9c5d6e"
]The unique identifier of the site designated for test runs.
"site_2Al5z3gXyY5f6Z7h8j9k0l1m"
The scheduled script was updated successfully.
The unique identifier for the scheduled script.
"018f5bda-4690-4432-8472-358b2734f19b"
The user ID of the person who created the script schedule.
"auth0|642b7f3b8b3b3e3e3e3e3e3e"
The unique identifier of the site designated for test runs.
"site_2Al5z3gXyY5f6Z7h8j9k0l1m"
If true, a configuration backup will be created on each target device before the script is executed.
true
If true, the script execution will be aborted for a site if it is offline at launch time.
false
A human-readable name or description for the script schedule.
"Weekly firewall rule update"
An AI-generated summary of the script's purpose.
"This script adds a firewall filter rule to drop input from a specific address list named \"blacklist\"."
The full content of the MikroTik RouterOS script to be executed.
"/ip firewall filter add action=drop chain=input src-address-list=blacklist"
The current status of the scheduled script.
unauthorized, scheduled, launched, cancelled "scheduled"
The timestamp when the script execution was authorized. Null if not yet authorized.
"2025-10-30T10:00:00.000000Z"
The timestamp when the script was cancelled.
null
The scheduled UTC date and time for the script to be executed.
"2025-11-01T02:00:00.000000Z"
A human-readable countdown to the launch time.
"in 2 days"
The timestamp when the script execution actually began.
"2025-11-01T02:00:05.000000Z"
A list of site IDs where the script will be executed.
A list of user IDs to notify about the script's progress and authorization requests.
Represents the execution progress of a launched script across its target sites.
Show child attributes
The timestamp when the scheduled script was created.
"2025-10-29T12:44:27.000000Z"
The timestamp when the scheduled script was last updated.
"2025-10-29T13:05:00.000000Z"
Was this page helpful?