Api doc


SDK's


Api Modules

schedule.requests

Returns a list of requests.



Supported Methods:

UPDATE
Params
  • token (Required): valid token
  • id (Required): integer
  • type (Required): enum (openshifts)
  • mode (Required): enum (approve, reject)


Documentation

UPDATE
Updates requests.
Level 5 is required (all users can fetch this module)

--

Parameters:

  1. "id": required //Request id (integer)
  2. "type": required //Type (enum[openshifts])
  3. /* openshifts: Open shifts */
  4. "mode": required //Mode (enum[approve, reject])
  5. /* approve: Approve schedule
  6.   * reject: Reject schedule */
  7. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"schedule.requests",
  3. "method":"GET",
  4. "request":{
  5. "id":"352",
  6. "type":"openshifts",
  7. "mode":"reject"
  8. }
  9. }

Example Response:

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