General - Get category setup

API Url

Load basic dialogue setup from the employee category for a specific employee.

GET
http://localhost:16010/ProMarkREST/rest/General/employees/{emp_id}/category-setup

Permissions: user

Path parameters

FieldTypeDescription
emp_idString

Unique employee ID.

Query parameters

FieldTypeDescription
dateoptionalDate

Date for which you need to know the setup. Default is TODAY.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    categorySetupObject[]

The setup object.

      absenceObject

Setup for absence registrations.

        allowPartialBoolean

TRUE = it's allowed to enter also part-time absences.

        canDeleteIfApprovedBoolean

TRUE = employee is allowed to delete absence even if it's approved.

        partialTypeoptionalInteger

0 = All, 1 = Only Before CI and After CO, 2 = Only Any time.

        useIntervaloptionalBoolean

TRUE = enter partial absence time as interval. FALSE = enter partial absence time as duration.

      projectObject

Setup for project registrations.

        allowFutureBoolean

TRUE = It's allowed to enter project registrations in the future.

        useIntervalBoolean

TRUE = enter project time as interval. FALSE = enter project time as duration.

      specialHandlingNumber

0 = No special handling. 1 = Special compressed dialogue handling for intervals.

  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": {
"categorySetup": {
"absence": {
"allowPartial": true,
"partialType": 0,
"useInterval": false,
"canDeleteIfApproved": true
},
"project": {
"useInterval": true,
"allowFuture": false
}
"specialHandling": 0
},
"accounts": [
{
"id": "2",
"description": "Anden",
"order": 3
},
{
"id": "A000",
"description": "Unauthorised Absence",
"order": 4
},
{
"id": "A-MFA",
"description": "All day abs with 2 reasons - MFA",
"order": 6
}
],
"accountGroups": [
{
"id": "NT",
"description": "Normtime",
"order": 1
},
{
"id": "2",
"description": "2",
"order": 2
},
{
"id": "BH",
"description": "Bo Haslund",
"order": 5
}
]
},
"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.