General - Update employee time-queues

API Url

Used for updating time queues of the employee

PUT
http://localhost:16010/ProMarkREST/rest/General/employees/{empId}/time-queues

Permissions: user

Path parameters

FieldTypeDescription
empIdString

Employee identifier

Query parameters

FieldTypeDescription
recalculateLogical

Indicates whether the system should automatically recalculate time queue data

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    timeQueuesObject[]

Collection of updated time-queues

      extraValueoptionalString

Time queue extra value,if it exists

      fromDate

Time queue start date

      idString

Time queue record indentifier (Not updateable)

      tooptionalDate

Time queue end date. It depends on time type. If it is day profile, end date must be defined.

      typeString

Time queue type (Not updateable)

      valueString

Time queue value

Request example:

{
"request": {
"data": {
"timeQueues": [
{
"id": "3164354",
"from": "2018-04-15T00:00:00.000",
"to": "2018-04-19T00:00:00.000",
"type": 1,
"value": "BH2"
}
]
}
}
}

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    timeQueuesObject[]

Collection of employee time-queues

      changedByString

The user who made the last change

      descriptionoptionalString

Value description

      extraValueoptionalString

Time queue extra value

      fromoptionalDate

Time queue start date

      idString

Time queue record indentifier

      lastChangedDate

The time stamp of the last change

      readOnlyBoolean

Is the time queue record updateable?

      tooptionalDate

Time queue end date

      typeNumber

Time queue type

      valueString

Time queue value

  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": {
"timeQueues": [
{
"recId": "3164354",
"from": "2018-04-15T00:00:00.000",
"type": "1",
"value": "BH2",
"description": "Bo Haslund 2",
"readOnly": true,
"lastChanged": "2025-08-07T15:56:45.000",
"changedBy": "DMA"
},
{
"id": "156092",
"type": 18,
"value": "SBA",
"description": "Sven ~\"Org~\" Bay",
"readOnly": true,
"lastChanged": "2025-08-07T15:56:45.000",
"changedBy": "DMA"
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}