Api doc


SDK's


Api Modules

timeclock.manage

Manage individual clock time or csv id's of clock times



Supported Methods:

GET
Params
  • token (Required): valid token
  • id (Required): varchar
  • action (Required): enum (approve, unapprove, reject, delete)
  • comment: varchar


Documentation

GET
Manage individual clock time or csv id's of clock times
Level 5 is required (all users can fetch this module)

--

Parameters:

  1. "id": required //Timeclock id (integer)
  2. "action": required //Action (enum[approve,unapprove,reject,delete])
  3. /* approve: Approve timeclock
  4.   * unapprove: Unapprove timeclock
  5.   * reject: Reject timeclock
  6.   * delete: Delete timeclock */
  7. "comment": accepted //Comment (varchar)
  8. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"timeclock.manage",
  3. "method":"GET",
  4. "request":{
  5. "id":"15553",
  6. "action":"approve"
  7. }
  8. }

Example Response:

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