Docs

Type a word or a question. Esc closes the search.

Sign in Start free

Preview a report schedule

Calculates the next run and reporting range for the supplied schedule settings.

POST https://app.upfour.io/v1/reports/schedules/preview
POST https://app.upfour.io/v1/reports/schedules/preview

A real request. Sending it changes data in your up4 account.

Authorization
AuthorizationA pls_ key. It stays in this browser tab. Needs report.read.
Body
cadencerequired
More fields8
enabled true when omitted, on update too.
format Defaults to pdf.

2 more fields are only available in JSON.

Headers

Sent directly from your browser to https://app.upfour.io/v1. Mutating calls get an automatic Idempotency-Key when the field is empty.

Request
Responsenot sent yet
Fill in a key and press Send request (⌘↵).
The answer appears here.
scope report.read stable Idempotency-Key supported returns 200

Body

application/json required 13 fields

cadencestringrequired
weeklymonthly
namestringrequired

1 to 200 characters without line breaks.

recipientsstring (email)[]required

1 to 50 distinct email addresses.

report_typestringrequired
executive_summarysummarymonitor_reportmonitorsmonitor_slaslaincident_analyticsincidentsresponse_timeresponse-timedowntime_ledgerdowntime-ledgertrends
All other fields9 fields
client_iduuid · nullable

Report on one client; omitted means the Company level. On update, omitting it keeps the schedule's client.

day_of_monthinteger · nullable

Required for monthly: 1 to 28.

day_of_weekinteger · nullable

Required for weekly: 1 (Monday) to 7 (Sunday).

enabledboolean · nullable

true when omitted, on update too.

formatstring

Defaults to pdf.

csvjsonpdfxlsx
languagestring · nullable

en or de (a region such as de-DE or the language name is accepted); null or empty inherits from the client, then the Company.

paramsobjectfree-form keys

Frozen report parameters: preset, from and to (the window, as in the query of the report endpoints), target (SLA target in percent, above 0 up to 100) and filters (monitor, severity and search narrowing; region, tag and group filters are refused). Without a window a weekly schedule reports the last 7 days and a monthly one the previous month.

send_hourinteger

Hour of the day, 0 to 23, in timezone. 0 when omitted.

timezonestring

IANA time zone; UTC when omitted.

Returns

A successful request returns 200 with application/json.

Response fields 1 top-level fields
FieldTypeDescription
data ReportSchedulePreview
ReportSchedulePreview · 8 fields
FieldTypeDescription
next_run_at string (date-time)
period string The window the next run would report, as text.
range ReportRange
ReportRange · 5 fields
FieldTypeDescription
from string (date-time)
to string (date-time)
clamped boolean true when the window was cut to the plan's history.
preset string one of24h1d7d30d90dmtdlast_monthqtdytd
timezone string

Errors

Only the errors this operation can return. Every error uses the same envelope.

Status Code Meaning
400 bad_request The request is malformed or fails validation.
403 permission_denied The credentials do not permit this action.

Every call can also return unauthorized (401), rate_limit_exceeded (429) or internal_error (500 / 502). See Responses and errors.