SelfService - Get favourite co-workers

API Url

Used in Self-service for loading employee favourite co-workers. Information from 'info1' and 'info2' depend on web-part setup.

GET
http://localhost:16010/ProMarkREST/rest/SelfService/employees/{emp_id}/co-workers

Permissions: user

Path parameters

FieldTypeDescription
emp_idString

Employee ID for whoom to get favourite co-workers.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    coWorkersObject[]

Collection of co-workers.

      empIdString

Employee ID.

      empNameString

Employee full name.

      info1optionalString

Custom information 1.

      info2optionalString

Custom information 2.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

HTTP/1.1 200 OK
{
"response": {
"data": {
"coWorkers": [
{
"empId": "392",
"empName": "Michael Kors",
"info1": "Designers",
"info2": "MK"
}
]
},
"errorCode": 0
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.