SelfService - Get all co-workers

API Url

Used in Self-service for loading all co-workers matching the current employee, according to setup. Information from 'info1' and 'info2' depends on web-part setup.

GET
http://localhost:16010/ProMarkREST/rest/SelfService/co-workers

Permissions: user

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.