Api doc


SDK's


Api Modules

schedule.copy

Copy a schedule between two timelines



Supported Methods:

GET
Params
  • token (Required): valid token
  • from_start (Required): date
  • from_end (Required): date
  • to_start (Required): date
  • to_end (Required): date
  • schedule: varchar
  • location: varchar
  • mode: varchar
  • with_staff: enum (0, 1, 2)
  • filter_by_site: varchar
  • filter_by_employee: varchar
  • filter_by_skill: varchar
  • filter_by_shift_type: varchar


Documentation

GET
Copy a schedule between two timelines.
Level 5 is required (all users can fetch this module)

--

Parameters:

  1. "from_start": required //From start (date)
  2. "from_end": required //From end (date)
  3. "to_start": required //To start (date)
  4. "to_end": required //To end (date)
  5. "location": required //Locations (varchar)
  6. /* Array of locations ids (eg. "234,563,770") */
  7. "schedule": accepted //Schedule id (varchar)
  8. /* Array of employees ids (eg. "234,563,770") */
  9. "mode": accepted //Mode (varchar[manage,requested, upcoming])
  10. /* manage
  11.   * requested
  12.   * upcoming */
  13. "with_staff": accepted //With staff (enum[0,1])
  14. /* 0: Copy staff
  15.   * 1: Do not copy staff */
  16. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"schedule.copy",
  3. "method":"GET",
  4. "request":{
  5. "from_start":"May 15, 2012",
  6. "from_end":"May 16, 2012",
  7. "to_start":"May 15, 2012",
  8. "to_end":"May 16, 2012",
  9. "with_staff":"1"
  10. }
  11. }

Example Response:

  1. {
  2. "status":1,
  3. "data":"1 Copied",
  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