Delete Departments from the company

Parameters

ParameterTypeRequiredNotes
Key string True Denotes how the item will be indexed: CatItemID or ExternalID
KeyVal string True The actual index of the item: CatItemID or ExternalID

Example Query

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

Sample JSON Input

  [
 {
  "Key": "CatItemID",
  "KeyVal": "516"
 },

 {
  "Key": "ExternalID",
  "KeyVal": "82"
 }

]  

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