General - Get contact list
API Url
Used for loading contacts when inserting an absence. The values depend on the portal setup and it can be employees from same department, group, approval group, division or all.
GET
http://localhost:16010/ProMarkREST/rest/General/employees/{id}/contacts
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| id | String | Unique employee identifier. |
Query parameters
| Field | Type | Description |
|---|---|---|
| includeAvatar | Boolean | True = The employee avatar URI will be included. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| contacts | Object[] | Collection of contact persons. |
avatarURIoptional | String | URI to lookup the employee avatar. |
| id | String | Employee iD. |
| initials | String | Employee initials. |
| name | String | Employee full name. |
| no | String | Employee number. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
HTTP/1.1 200 OK{"response": {"data": {"contacts": [{"id": "100","no": "210","name": "Andreea Toma","initials": "AMT"},{"id": "110","no": "220","name": "Sebastian Podaru","initials": "SEP"}]},"errorCode": 0,"errorMessage": ""}}
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |