Api doc


SDK's


Api Modules

schedule.clear

Clear the Schedule



Supported Methods:

GET
Params
  • token (Required): valid token
  • start_date: date
  • end_date: date
  • schedule: integer
  • shifts: varchar
  • restore: enum (0, 1)
  • restoredate: unix timestamp


Documentation

GET
Clear the Schedule.
Level 5 is required (all users can fetch this module)

--

Parameters:

  1. "start_date": accepted //Start date (date)
  2. "end_date": accepted //End date (date)
  3. "schedule": accepted //Schedule id (integer)
  4. "shifts": accepted //Shifts (varchar)
  5. /* Array of shifts ids (eg: "458,547,1001") */
  6. "restore": accepted //Restore (enum[0,1])
  7. /* 0: Clear shift
  8.   * 1: Restore shift */
  9. "restoredate": accepted //Unix timestamp (timestamp)
  10. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"schedule.clear",
  3. "method":"GET",
  4. "request":{
  5. "restore":"1"
  6. }
  7. }

Example Response:

  1. {
  2. "status":1,
  3. "data":"43 shifts restored.",
  4. "token":"xxxxxxx"
  5. }

GET STARTED NOW

Free Trial. No Credit Card Required.

close
(e.g.+14158675309 or +1415-8675-309)

By clicking "Create my ShiftPlanning Account" you agree to the Terms of Service and Privacy Policy.

Have a promotional code?Click Here


LIVE CHAT DEMO REQUEST!

Please provide information below.

close
INSTANT DEMOSCHEDULED DEMO
Connect with a ShiftPlanning Team Member for a live demo right now!
 

RESELLER REQUEST!

Please provide information below.

close