Add TimeOff Accounts to the company

Parameters

ParameterTypeRequiredNotes
Name string True
StartTime datetime False Accepts date and datetime strings.
EndTime datetime False Accepts date and datetime strings. *Only required if StartTime exists
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=addTimeOffAccounts

Sample JSON Input

  [
 {
  "Name": "2014",
  "Color": "0066CC",
  "Active": "1",
  "ShowToEmployee": "1",
  "StartTime": "06-16-2012",
  "EndTime": "06-17-2013"
 },
 {
  "Name": "2013",
  "Color": "993366",
  "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