General - Get profile period

API Url

Get profile period for a date.

GET
http://localhost:16010/ProMarkREST/rest/General/employees/{emp_id}/profile-period

Permissions: user

Path parameters

FieldTypeDescription
emp_idString

Employee ID

Query parameters

FieldTypeDescription
dateDate

Date to be in period

periodProfileIdString

Profile Period ID

SplitByWeekboolean

True if want to splited by week

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    endDateDate

End date.

    startDateDate

Start date.

  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": {
"startDate": "2017-10-23",
"endDate" :"2017-10-29"
},
"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.

Employee does not exist:

{
"response": {
"data": {},
"errorCode": 75,
"errorMessage": "Employee does not exist"
}
}