General - Get day profiles

API Url

Use it for loading a list of day profiles.

GET
http://localhost:16010/ProMarkREST/rest/General/day-profiles

Permissions: user

Query parameters

FieldTypeDescription
dateoptionalDate

Date of query. Used for determening the employee category for restrictions. Default is TODAY.

empIdoptionalString

List of Employee ids (comma separated). Default is the current session employee will be used.

fieldsoptionalString

Comma delimited list of fields to get.

includeInactiveoptionalBoolean

true = include also inactive profiles (default false).

includeMultiShiftoptionalBoolean

true = include also the value.

onlyOptionalProfileoptionalBoolean

true = day profiles of optional profile, false = day profiles.

timeoptionalNumber

Shift time.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    dayProfilesObject[]
      arrivalTimeStartNumber

Day profile's clock-in start time in seconds after midnight.

      arrivalTimeStopNumber

Day profile's clock-in stop time in seconds after midnight.

      backColoroptionalString

Background color as HEX without #.

      departureTimeStartNumber

Day profile's clock-out start time in seconds after midnight.

      descriptionString

Description of the Day Profile.

      foreColoroptionalString

Foreground color as HEX without #.

      hoursPerDayoptionalNumber

Day profile's hoursPerDay in seconds.

      idString

Day profile ID.

      inactiveBoolean

true = day profile is inactive.

      isVariableBoolean

true = the day profile is variable.

      normalTimeStartoptionalNumber

Day profile's normal start time in seconds after midnight.

      normalTimeStopoptionalNumber

Day profile's normal stop time in seconds after midnight.

      shiftString

Day profile shift.

      shortDescriptionString

Short description of the Day Profile.

  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":{
"dayProfile":{
"id": 20002,
"description": "Funktionr m/overarb.",
"shortDescription": "short descr"
"normalTimeStart": 28800,
"normalTimeStop": 72000,
"foreColor": "white",
"backColor": "red",
"inactive": false,
"isVariable": false,
"hoursPerDay": 28800,
"shift": "DAY",
"arrivalTimeStart": 28500,
"arrivalTimeStop": 28860,
"departureTimeStart": 72000,
"departureTimeStop": 151500
}
},
"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.