General - Edit an employee's information
API Url
Used to edit information for a single employee.
http://localhost:16010/ProMarkREST/rest/General/employees/{empId}
Permissions: user
Request headers
| Field | Type | Description |
|---|---|---|
Accept-Languageoptional | String | =en-GB Language use for localization. |
X-Clientoptional | String | =Client type. "Portal""Mobile""Admin" |
X-Roleoptional | Number | ProMark role (1: Employee, 2: User). {12} |
X-WebPart-Idoptional | Number | Unique web-part identifier. |
Path parameters
| Field | Type | Description |
|---|---|---|
| empId | String | Employee Id. |
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| employees | Object[] | Collection with employee data. |
address1optional | String | Address1 |
address2optional | String | Address2 |
address3optional | String | Address3 |
cardNooptional | String | Card number. |
cityoptional | String | City |
countryCodeoptional | String | Country Code |
dateOfBirthoptional | Date | Employee birthday. |
emailoptional | String | Email address. |
email2optional | String | Email address 2 |
| empId | String | Employee Id. |
| empNo | String | Employee number. |
firstNameoptional | String | Employee first name. |
genderoptional | String | Gender |
homePhoneoptional | String | Home Phone. |
info1optional | String | Employee note1 |
info2optional | String | Employee note2 |
info3optional | String | Employee note3 |
info4optional | String | Employee note4 |
info5optional | String | Employee note5 |
initialsoptional | String | Employee initials. |
localPhoneoptional | String | local Phone. |
lockStatusoptional | Boolean | Lock Status |
mobilePhoneoptional | String | Employee phone number. |
postalCodeoptional | String | Postal code |
provinceoptional | String | Province |
surnameoptional | String | Employee last name. |
workPhoneoptional | String | work Phone. |
Request example:
{"request": {"data": {"employees": [{"cardNo": "1","firstName": "John","surname": "Doe","initials": "DT","mobile": "99999","dateOfBirth": "1985-02-28","dateOfEmployment": "2006-10-01","email": "john@my-company.com"}]}}}
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |
Error example:
HTTP/1.1 404 Not found{"response": {"errorCode": 75,"errorMessage": "Employee does not exist"}}