Skip to main content
POST
/
scheduled
Create a new scheduled script
curl --request POST \
  --url https://api.altostrat.io/scheduled \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "test_site_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "make_backup": true,
  "abort_if_offline": true,
  "description": "<string>",
  "script": "<string>",
  "launch_at": "2023-11-07T05:31:56Z",
  "sites": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "notify": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
make_backup
boolean
required
abort_if_offline
boolean
required
description
string
required
script
string
required
launch_at
string<date-time>
required
sites
string<uuid>[]
required

List of site UUIDs

notify
string<uuid>[]
required

List of user IDs to notify

customer_id
string<uuid>
created_by
string<uuid>
test_site_id
string<uuid> | null

Response

Scheduled script created

I