Update Scheduled Report
Changes or pauses one scheduled report. Shared rules: see Writing data.
- The report is named by its current
reportandtime_slot, exactly as List Scheduled Reports shows them. An Admin can change any scheduled report; anyone else only the ones they set up. - Send at least one change: otherwise
400"Send at least one field to change." new_reportandnew_time_slotmove it to another report or time. Refused with400when that report is already scheduled at that time.recipient_emails,branch_namesanddepartment_namesreplace the current lists. An emptybranch_namesordepartment_namesmeans the branches or departments of the person who set it up.is_active: falsepauses the emails;trueresumes them.- No match:
404“Scheduled report not found.” If two scheduled reports match (possible for reports set up in the app),400: change them in the SalaryBox app. - Needs the Attendance Reports plan feature. Deleting is not available through the API.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Request
This endpoint expects an object.
report
The report's current report.
Allowed values:
time_slot
The report's current time slot.
Allowed values:
new_report
Allowed values:
new_time_slot
Allowed values:
file_type
Allowed values:
recipient_emails
Replaces the current list.
branch_names
Replaces the current branches. Empty means the branches of the person who set it up.
department_names
Replaces the current departments. Empty means the departments of the person who set it up.
is_active
false pauses the emails, true resumes them.
Response
The change was saved. data is the scheduled report after the change.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
