Skip to main content
POST
/
sla
/
schedules
/
{scheduleId}
/
run
Run a Report On-Demand
curl --request POST \
  --url https://api.altostrat.io/sla/schedules/{scheduleId}/run \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from_date": "2025-10-01",
  "to_date": "2025-10-31"
}'
{
  "message": "Report is being generated."
}

Authorizations

Authorization
string
header
required

Enter your authentication token.

Path Parameters

scheduleId
string
required

The unique identifier for the SLA report schedule to run, prefixed with sla_.

Example:

"sla_2ayc4Yy6w3g7Y2j4g4g4Yy6w3g7"

Body

application/json

The date range for the on-demand report.

Specifies the date range for an on-demand report run.

from_date
string<date>
required

The start date for the report data (inclusive), in YYYY-MM-DD format. Must be before to_date and before tomorrow.

Example:

"2025-10-01"

to_date
string<date>
required

The end date for the report data (inclusive), in YYYY-MM-DD format. Must be after from_date and before tomorrow.

Example:

"2025-10-31"

Response

Accepted. The report generation has been queued successfully.

message
string
Example:

"Report is being generated."