SelfService - Delete favourite co-workers

API Url

Used in Self-service for deleting 1 or more favourite co-workers.

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

Permissions: user

Path parameters

FieldTypeDescription
emp_idString

Employee ID for whoom to remove favourite co-workers.

Query parameters

FieldTypeDescription
idsoptionalString

Ids of co-workers to remove.

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    coWorkersObject[]

Collection of co-workers to remove.

      empIdString

Employee ID.

Request example:

{
"request": {
"data": {
"coWorkers": [
{
"empId": "392"
},
{
"empId": "400"
}
]
},
"errorCode": 0
"errorMessage": ""
}
}

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.