Add Category Items to the company record.

Query Parameters

ParameterTypeRequiredNotes
CatNoIntegerTrueThe Type of Category

Parameters

ParameterTypeRequiredNotes
Name string True
ExternalID integer False Must be unique
Active boolean False Accepts an integer
ShowToEmployee boolean False Accepts an integer
Color string False
StartTime time True* Only required if adding a TimeOfDay Category Item
EndTime time True* Only required if adding a TimeOfDay Category Item

Example Query

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

Sample JSON Input

  [
	{
	 "Name": "Test",
	 "Color": "00FF00",
	 "Active": "1",
	 "ShowToEmployee": "1"
	}
]  

JSON Response

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

Resource Information

Response Format JSON
Request Type POST