Staff Methods

GET list Return a list of all staff members
GET get/[id] Details for a specific staff member
POST add Add a staff member
PUT update Update a staff members details
POST delete Delete a staff member
POST enable Enable a staff member so they can log into WorkflowMax
POST disable Disable a staff member so they can no longer log into WorkflowMax
POST forgottenpassword Reset a staff members password. The staff member will be sent an email to reset their password. This is the same as the staff member using the Forgotten Password process.

 

GET list

 

Example URL:

http://api.workflowmax.com/staff.api/list?apiKey=[your API key]&accountKey=[WorkflowMax account key]

 

Example Response:

<Response>
  <Status>OK</Status> 
  <StaffList>
    <Staff>
      <ID>1</ID> 
      <Name>Jo Bloggs</Name> 
      <Email>jo@bloggs.net</Email> 
      <Phone /> 
      <Mobile /> 
      <Address /> 
    </Staff>
    <Staff>
      <ID>19</ID> 
      <Name>John Smith</Name> 
      <Email>john@smith.com</Email> 
      <Phone /> 
      <Mobile /> 
      <Address /> 
    </Staff>
  </StaffList>
</Response>

 

GET get/[id]

 

Example URL:

http://api.workflowmax.com/staff.api/get/123?apiKey=[your API key]&accountKey=[WorkflowMax account key]

 

Example Response:

<Response>
  <Status>OK</Status> 
  <Staff>
    <ID>1</ID> 
    <Name>Jo Bloggs</Name> 
    <Email>jo@bloggs.net</Email> 
    <Phone /> 
    <Mobile /> 
    <Address /> 
    <PayrollCode /> 
  </Staff>
</Response>

 

POST add

 

Example URL:

POST http://api.workflowmax.com/staff.api/add?apiKey=[your API key]&accountKey=[WorkflowMax account key]

 

Example Message:

 
<Staff>
  <Name>John Smith</Name>
  <Address></Address>  <!-- optional -->   
  <Phone></Phone>  <!-- optional -->   
  <Mobile></Mobile>  <!-- optional -->   
  <Email></Email>  <!-- optional -->   
  <PayrollCode></PayrollCode>  <!-- optional -->   
</Staff>

 

The response will include the detailed information of the staff member as per the GET get/[id] method

 

PUT update

 

Example URL:

PUT http://api.workflowmax.com/staff.api/update?apiKey=[your API key]&accountKey=[WorkflowMax account key]

 

Example Message:

 
<Staff>
  <ID>1234</ID>
  <Name>John Smith</Name>
  <Address></Address>  <!-- optional -->   
  <Phone></Phone>  <!-- optional -->   
  <Mobile></Mobile>  <!-- optional -->   
  <Email></Email>  <!-- optional -->   
  <PayrollCode></PayrollCode>  <!-- optional -->   
</Staff>

 

The response will include the detailed information of the staff member as per the GET get/[id] method

 

POST delete

 

Example URL:

POST http://api.workflowmax.com/staff.api/delete?apiKey=[your API key]&accountKey=[WorkflowMax account key]

 

Example Message:

 
<Staff>
  <ID>1234</ID>
</Staff>

 

POST enable

 

Example URL:

POST http://api.workflowmax.com/staff.api/enable?apiKey=[your API key]&accountKey=[WorkflowMax account key]

 

Example Message:

 
<Staff>
  <ID>1234</ID>
  <Security> 
   <!-- We recommend using the staff members email address for their login.  A password will be automatically generated by WorkflowMax and emailed to the staff member. --> 
    <Login>username@domain.com</Login>  
  </Security>
</Staff>

 

POST disable

 

Example URL:

POST http://api.workflowmax.com/staff.api/disable?apiKey=[your API key]&accountKey=[WorkflowMax account key]

 

Example Message:

 
<Staff>
  <ID>1234</ID>
</Staff>

 

POST forgottenpassword

 

Example URL:

POST http://api.workflowmax.com/staff.api/forgottenpassword?apiKey=[your API key]&accountKey=[WorkflowMax account key]

 

Example Message:

 
<Staff>
  <ID>1234</ID>
</Staff>
  Developer API
Job Management Software developed by Max Solutions Ltd - Copyright 2011