Skip to main content
PUT
/
sla
/
schedules
/
{id}
Update an SLA schedule
curl --request PUT \
  --url https://api.altostrat.io/sla/schedules/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "disabled": true,
  "daily": true,
  "weekly": true,
  "monthly": true,
  "day_of_week": "monday",
  "day_of_month": 14,
  "sla_target": 87.5,
  "show_only_breached_sites_in_pdf": true,
  "calculate_sla_within_schedule_hours": true,
  "business_hours_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sites": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "recipients": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "timezone": "<string>",
  "ignore_power_outages": true,
  "notification_group": "<string>"
}'

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

UUID of the schedule

Body

application/json

Updated SLA schedule data

name
string
required
Maximum length: 100
sla_target
number
required
Required range: 75 <= x <= 100
business_hours_id
string<uuid>
required

ID for an existing business-hours record in the 'chrono' service

sites
string<uuid>[]
required

Site IDs included in the SLA schedule

Maximum length: 250
timezone
string
required

TZ name (default UTC if missing)

Maximum length: 100
id
string<uuid>

Auto-generated for POST if not provided, required for PUT

disabled
boolean
daily
boolean

Needs to be true if weekly/monthly are false

weekly
boolean

Needs to be true if daily/monthly are false. If true, must pass day_of_week

monthly
boolean

Needs to be true if daily/weekly are false. If true, must pass day_of_month

day_of_week
enum<string>
Available options:
monday,
tuesday,
wednesday,
thursday,
friday,
saturday,
sunday
day_of_month
integer
Required range: 1 <= x <= 28
show_only_breached_sites_in_pdf
boolean
calculate_sla_within_schedule_hours
boolean
recipients
string<uuid>[]

User IDs to notify or a group parameter can be used

Maximum length: 250
ignore_power_outages
boolean
notification_group
string
Maximum length: 100

Response

OK. Returns updated schedule.

I