Clock out specified users, given they are allowed to use the Time Clock.

Parameters

ParameterTypeRequiredNotes
Key string True A Key of "UserID" is accepted
KeyVal integer True The corresponding UserID

Example Query

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

Sample JSON Input

  [
  {
   "Key": "UserID",
   "KeyVal": "1"
  },

  {
   "Key": "UserID",
   "KeyVal": "2"
  }
]  

JSON Response

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

XML Response

 <WSDN>
  <ArrayItem>
	<ErrorMessage>Success</ErrorMessage>
	<ItemResponses>
	  <ArrayItem>
		<ErrorMessage>Success</ErrorMessage>
		<ItemNo>1</ItemNo>
		<ErrorCode>0</ErrorCode>
	  </ArrayItem>
	  <ItemResponses>
		<ArrayItem>
		  <ErrorMessage>Success</ErrorMessage>
		  <ItemNo>2</ItemNo>
		  <ErrorCode>0</ErrorCode>
		</ArrayItem>
	  </ItemResponses>
	</ItemResponses>
	<ErrorCode>0</ErrorCode>
  </ArrayItem>
</WSDN> 

Resource Information

Response Format JSON/XML
Request Type POST