SelfService - Add favourite co-workers
API Url
Used in Self-service for adding employee favourite co-workers.
POST
http://localhost:16010/ProMarkREST/rest/SelfService/employees/{emp_id}/co-workers
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| emp_id | String | Employee ID for whoom to add favourite co-workers. |
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| coWorkers | Object[] | Collection of co-workers to add. |
| empId | String | Employee ID. |
Request example:
{"request": {"data": {"coWorkers": [{"empId": "392"},{"empId": "400"}]},"errorCode": 0"errorMessage": ""}}
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. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |