Api doc


SDK's


Api Modules

schedule.fill

Fill Shifts using the Schedule wizard.



Supported Methods:

GET
Params
  • token (Required): valid token
  • shifts (Required): varchar
  • fill_count: integer
  • fill_slots: min length 1
  • disallow_openslots: min length 1


Documentation

GET
Fill Shifts using the Schedule wizard.
Level 4 is required

--

Parameters:

  1. "shift": required //Shift id (integer)
  2. "fill_slots": accepted //Fill slots (integer) - min length: 1
  3. "fill_count": accepted //Fill count (integer)
  4. "token": "xxxxxxx" //Valid token is required

Example Request:

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

Example Response:

  1. {
  2. "status":1,
  3. "data":[
  4. {
  5. "id":"95645",
  6. "created":"1339681687",
  7. "published":"0",
  8. "edited":"1339681687",
  9. "deleted":"0",
  10. "schedule":"32408",
  11. "type":"0",
  12. "needed":"0",
  13. "working":"1",
  14. "user":"2",
  15. "start_date":{
  16. "id":"1133",
  17. "month":"6",
  18. "day":"5",
  19. "year":"2012",
  20. "weekday":"Tue",
  21. "mname":"Jun",
  22. "week":"23",
  23. "dayid":3,
  24. "formatted":"Jun 5, 2012"
  25. },
  26. "end_date":{
  27. "id":"1133",
  28. "month":"6",
  29. "day":"5",
  30. "year":"2012",
  31. "weekday":"Tue",
  32. "mname":"Jun",
  33. "week":"23",
  34. "dayid":3,
  35. "formatted":"Jun 5, 2012"
  36. },
  37. "length":8,
  38. "title":"",
  39. "location":"0",
  40. "notes":"",
  41. "confirmed":"1",
  42. "perms":1,
  43. "paidtime":8,
  44. "start_time":{
  45. "id":"33",
  46. "time":"8 am"
  47. },
  48. "end_time":{
  49. "id":"65",
  50. "time":"4 pm"
  51. },
  52. "schedule_name":"Admin\/meetings",
  53. "employees":[
  54. {
  55. "id":"5623",
  56. "name":"El Homo",
  57. "status":"1",
  58. "wage":"",
  59. "notified_day":"0",
  60. "notified_hour":"0",
  61. "last_active":"0",
  62. "rate":"",
  63. "ratecard":"0",
  64. "cost":0
  65. }
  66. ],
  67. "cost":{
  68. "staff":1,
  69. "hours":8,
  70. "dollars":0
  71. },
  72. "repeats":"0"
  73. }
  74. ],
  75. "token":"xxxxxxx"
  76. }