General - Delete employee time-queue

API Url

Used for deleting the employee time queue

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

Permissions: user

Path parameters

FieldTypeDescription
empIdString

Employee identifier

idString

Time queue record 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.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    timeQueuesObject

Collection of employee time-queues

      descriptionoptionalString

Value description

      extraValueoptionalString

Time queue extra value

      fromoptionalDate

Time queue start date

      idString

Time queue record indentifier

      readOnlyBoolean

Is the time queue record updateable?

      tooptionalDate

Time queue end date

      typeNumber

Time queue type (same type number that is used in portal employee information)

      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": [
{
"id": "3670097",
"from": "2018-04-22T00:00:00.000",
"type": 1,
"value": "BH",
"description": "Bo Haslund",
"readOnly": false
},
{
"id": "156092",
"type": 18,
"value": "SBA",
"description": "Sven ~\"Org~\" Bay",
"readOnly": true
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}