schedule.clear

Clear the Schedule

SUPPORTED METHODS:

GET

Parameters

Type

Description

token (required)

Valid token

shifts (accepted)

varchar

Array of shift IDs (eg: "1584063581,1584063584,1584063589"). This parameter is used when the restore parameter is set to 0 or not provided (clear action).

restore (accepted)

enum (0, 1)

0: Clear shift
1: Restore shift

restoredate (accepted)

unix timestamp

Unix timestamp value of a datetime when shifts, which we want to restore, were deleted. This parameter is used when the restore parameter is set to 1 (restore action).

DOCUMENTATION

GET
Clear or restore shifts.

--

Example Request:

{
   "module":"schedule.clear",
   "method":"GET",
   "request":{
      "restore":"1"
   }
}

Example Response:

{
   "status":1,
   "data":"43 shifts restored.",
   "token":"xxxxxxx"
}