POST
/
sla
/
schedules
curl --request POST \
  --url https://api.altostrat.io/sla/schedules \
  --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.

Body

application/json

New SLA schedule data

The body is of type object.

Response

201

Created. Returns the newly created schedule.