Add TimeOff Reasons to the company.

Parameters

ParameterTypeRequiredNotes
Name string True
StartTime datetime True
EndTime datetime False
ExternalID integer False Must be unique
Active boolean False Accepts an integer value.
ShowToEmployee boolean False Accepts an integer value.
Color string False

Example Query

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

Sample JSON Input

  [
  {
   "Name": "Vacation",
   "StartTime": "10-1-2014",
   "EndTime": "12-31-2015",
   "Color": "FFC0CB",
   "ExternalID": "13",
   "Active": "1",
   "ShowToEmployee": "1"
  },


  {
   "Name": "Jury Duty",
   "StartTime": "1-1-2010",
   "EndTime": "12-31-2015",
   "Color": "000000",
   "ExternalID": "102",
   "Active": "1",
   "ShowToEmployee": "1"
  }

]  

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