Skip to navigation

Add Scheduled Report

Schedules a report to be emailed every day, as in the app. Shared rules: see Writing data.

  • Needs the Attendance Reports plan feature: otherwise 403 with the upgrade message.
  • An Admin can schedule any report. A Custom role needs the attendance report edit permission and can only choose branches and departments they manage. The body is closed: an unknown field is refused with 400. Counts toward your write budget.
  • report is Daily Attendance Report or Shift Wise Daily Attendance Report. time_slot is 12 PM IST, 4 PM IST, 8 PM IST or 12 AM IST. file_type is PDF (default) or XLSX; the Shift Wise report is PDF only.
  • recipient_emails has at max 5 addresses. They are saved trimmed and in lower case, without duplicates.
  • branch_names and department_names are exact names. Left out or empty, the report covers the branches and departments of the person who set it up, worked out each time it is sent.
  • A scheduled report is named by its report and time slot, so the same report can’t be scheduled twice at the same time: 400 on time_slot. Change that one with Update Scheduled Report instead.
  • Each person can set up at most 5 scheduled reports: 400 on report.

Authentication

AuthorizationApi-Key

Format: “Api-Key {api-key}”

Request

This endpoint expects an object.
reportenumRequired
Allowed values:
time_slotenumRequired
Allowed values:
recipient_emailslist of stringsRequired
file_typeenumOptional

Default PDF. The Shift Wise report is PDF only.

Allowed values:
branch_nameslist of stringsOptional
Exact branch names. Left out or empty means the branches of the person who set it up.
department_nameslist of stringsOptional
Exact department names. Left out or empty means the departments of the person who set it up.

Response

The report was scheduled. data is the scheduled report, as List Scheduled Reports shows it.

messagestring
statusboolean
dataobject

Errors

400
Bad Request Error
403
Forbidden Error