Add users to the company record.

Parameters

ParameterTypeRequiredNotes
UserName string True Must be unique and must be > 6 characters and alphanumeric.
Password string True Must be > 6 characters and can only be alphanumerical with symbols.
FirstName string True
LastName string True
Email string True
UserType char True Accepts A, M, E, R for Admin, Manager, Employee, and Read-Only Respectively.
HomePhone alphanumeric False
WorkPhone alphanumeric False
CellPhone alphanumeric False

Example Query

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

Sample JSON Input

  [
	{
		"UserName": "Test123",
		"Password": "Test1234",
		"FirstName": "Test",
		"LastName": "Tester",
		"Email": "Test1@Test1.com",
		"UserType": "E",
		"HomePhone": "5555555555"
	},

	{
		"UserName": "Test234",
		"Password": "Test2345",
		"FirstName": "Testtwo",
		"LastName": "Testertwo",
		"Email": "Test2@Test2.com",
		"UserType": "A",
		"CellPhone": "1234567891"
	}
]  

JSON Response

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

XML Response

 <WSDN>
  <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>
</WSDN> 

Resource Information

Response Format JSON/XML
Request Type POST