Update TimeOff Transactions for the company record.

Query Parameters

ParameterTypeRequiredNotes
TOAccountIDintegerTrue
reqAddifnotfoundintegerTrue

Parameters

ParameterTypeRequiredNotes
Key string True Denotes how the item will be indexed: Currently only accepts TransID
KeyVal string True The actual index of the item: TransID
UserID integer True
Description string False
EffectiveDate date False
Amount integer False Indicate the amount(in days) for this transaction
CanEdit boolean False Allow the employee to edit this transaction

Example Query

POST https://api.workschedule.net/WS.exe?Module=API&SessionID=123&SP=12345678&Method=updateTimeOffTrans&TOAccountID=73

Sample JSON Input

  [
 {
   "Key": "TransID",
   "KeyVal": "14",
   "UserID": "1",
   "Description": "Test Update",
   "EffectiveDate": "8-15-2014",
   "Amount": "1",
   "CanEdit": "0"
  },
 {
   "Key": "TransID",
   "KeyVal": "43",
   "UserID": "2",
   "Description": "Test Update2",
   "EffectiveDate": "10-31-2014",
   "Amount": "1",
   "CanEdit": "0"
  }
]  

JSON Response

  {
 "ErrorMessage": "Success",
 "ItemResponses": [
  {
   "ErrorMessage": "Success",
   "ItemNo": "1",
   "ErrorCode": "0"
  },{
   "ErrorMessage": "Success",
   "ItemNo": "2",
   "ErrorCode": "0"
  }],
 "Items": [],
 "ErrorCode": "0"
}  

Resource Information

Response Format JSON
Request Type POST