Api doc


SDK's


Api Modules

schedule.conflicts

Returns a list of schedule conficts.



Supported Methods:

GET
Params
  • token (Required): valid token
  • start_date: date
  • end_date: date
  • mode: varchar
  • schedule: varchar


Documentation

GET
Retrieves a list of schedule conficts.
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. "mode": accepted //Mode (varchar)
  4. "schedule": accepted //Schedule id (integer)
  5. "token": "xxxxxxx" //Valid token is required

Example Request:

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

Example Response:

  1. {
  2. "status":1,
  3. "data":[
  4. {
  5. "employee":3415,
  6. "title":"John Smith is Booked on overlapping shifts",
  7. "date":{
  8. "id":"1108",
  9. "month":"5",
  10. "day":"11",
  11. "year":"2012",
  12. "weekday":"Fri",
  13. "mname":"May",
  14. "week":"19",
  15. "dayid":6,
  16. "formatted":"May 11, 2012"
  17. },
  18. "shift":"93093"
  19. },
  20. {
  21. "employee":"2776",
  22. "title":"Reas is scheduled for less than 10 hours (0)",
  23. "date":{
  24. "id":"1107",
  25. "month":"5",
  26. "day":"10",
  27. "year":"2012",
  28. "weekday":"Thu",
  29. "mname":"May",
  30. "week":"19",
  31. "dayid":5,
  32. "formatted":"May 10, 2012"
  33. },
  34. "date2":null
  35. }
  36. ],
  37. "token":"xxxxxxx"
  38. }