General - Update employee time-queues
API Url
Used for updating time queues of the employee
http://localhost:16010/ProMarkREST/rest/General/employees/{empId}/time-queues
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| empId | String | Employee identifier |
Query parameters
| Field | Type | Description |
|---|---|---|
| recalculate | Logical | Indicates whether the system should automatically recalculate time queue data |
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| timeQueues | Object[] | Collection of updated time-queues |
extraValueoptional | String | Time queue extra value,if it exists |
| from | Date | Time queue start date |
| id | String | Time queue record indentifier (Not updateable) |
tooptional | Date | Time queue end date. It depends on time type. If it is day profile, end date must be defined. |
| type | String | Time queue type (Not updateable) |
| value | String | 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
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| timeQueues | Object[] | Collection of employee time-queues |
| changedBy | String | The user who made the last change |
descriptionoptional | String | Value description |
extraValueoptional | String | Time queue extra value |
fromoptional | Date | Time queue start date |
| id | String | Time queue record indentifier |
| lastChanged | Date | The time stamp of the last change |
| readOnly | Boolean | Is the time queue record updateable? |
tooptional | Date | Time queue end date |
| type | Number | Time queue type |
| value | String | Time queue value |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "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": ""}}