Api doc


SDK's


Api Modules

schedule.adjust

Adjust a schedule using the adjust shift times wizard.



Supported Methods:

UPDATE
Params
  • token (Required): valid token
  • from (Required): date
  • to (Required): date
  • budge (Required): integer
  • location: integer
  • flag: enum (1, 2, 3, 4, 5, 6, 7)


Documentation

UPDATE
This method enables you to move your shifts n hours back and fourth.
Level 2 is required.

--

Parameters:

  1. "from": required //Adjust shifts from date (date)
  2. "to": required //Adjust shifts to date - including that date (date)
  3. "budge": required //Number of hours (integer)
  4. "location": accepted //Location id (integer)
  5. "flag": accepted //Flag (enum[1, 2, 3, 4, 5, 6, 7])
  6. /* 1: Don't adjust shifts created during this timeline
  7.   * 2: Don't adjust shifts edited during this timeline
  8.   * 3: 1&2
  9.   * 4: Don't adjust shifts published during this timeline
  10.   * 5: 1&4
  11.   * 6: 2&4
  12.   * 7: 1&2&4 */
  13. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"schedule.adjust",
  3. "method":"UPDATE",
  4. "request":{
  5. "budge":1,
  6. "flag":3,
  7. "from":"Nov 18, 2012",
  8. "to":"Nov 24, 2012",
  9. "location":40456
  10. }
  11. }

Example Response:

  1. {
  2. "status":1,
  3. "data":[
  4. {
  5. "success":true,
  6. "affected_rows":0
  7. }
  8. ],
  9. "token":"xxxxxxx"
  10. }

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