Skip to navigation

Update Scheduled Report

Changes or pauses one scheduled report. Shared rules: see Writing data.

  • The report is named by its current report and time_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_report and new_time_slot move it to another report or time. Refused with 400 when that report is already scheduled at that time.
  • recipient_emails, branch_names and department_names replace the current lists. An empty branch_names or department_names means the branches or departments of the person who set it up.
  • is_active: false pauses the emails; true resumes 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.
reportenumRequired
The report's current report.
Allowed values:
time_slotenumRequired
The report's current time slot.
Allowed values:
new_reportenumOptional
Allowed values:
new_time_slotenumOptional
Allowed values:
file_typeenumOptional
Allowed values:
recipient_emailslist of stringsOptional
Replaces the current list.
branch_nameslist of stringsOptional
Replaces the current branches. Empty means the branches of the person who set it up.
department_nameslist of stringsOptional
Replaces the current departments. Empty means the departments of the person who set it up.
is_activebooleanOptional

false pauses the emails, true resumes them.

Response

The change was saved. data is the scheduled report after the change.

messagestring
statusboolean
dataobject

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error