Add Tasks to the company

Parameters

ParameterTypeRequiredNotes
Name string True
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=addTasks

Sample JSON Input

  [
  {
   "Name": "Payroll",
   "Color": "008000",
   "ExternalID": "47",
   "Active": "1",
   "ShowToEmployee": "1"
  },


  {
   "Name": "Accounting",
   "Color": "008000",
   "ExternalID": "1162",
   "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