PUT api/employees/messages/markasread
Marks a set of employee messages as read (the supplied messages must belong to the employee marking them).
Request Information
URI Parameters
None.
Body Parameters
A list of objects, each object contains a NewEmployeeMessageId (id of the message to mark) and DateRead (date time when it was read)
Collection of MarkAsReadEmployeeMessageInput| Name | Description | Type | Additional information |
|---|---|---|---|
| NewEmployeeMessageId | integer |
None. |
|
| DateRead | date |
None. |
Request Formats
application/json, text/json
[
{
"NewEmployeeMessageId": 1,
"DateRead": "2026-05-05T07:17:07.5700823-04:00"
},
{
"NewEmployeeMessageId": 1,
"DateRead": "2026-05-05T07:17:07.5700823-04:00"
}
]
application/xml, text/xml
<ArrayOfMarkAsReadEmployeeMessageInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.DTO.ActionInputs">
<MarkAsReadEmployeeMessageInput>
<DateRead>2026-05-05T07:17:07.5700823-04:00</DateRead>
<NewEmployeeMessageId>1</NewEmployeeMessageId>
</MarkAsReadEmployeeMessageInput>
<MarkAsReadEmployeeMessageInput>
<DateRead>2026-05-05T07:17:07.5700823-04:00</DateRead>
<NewEmployeeMessageId>1</NewEmployeeMessageId>
</MarkAsReadEmployeeMessageInput>
</ArrayOfMarkAsReadEmployeeMessageInput>
application/x-www-form-urlencoded
Response Information
Resource Description
An Http response message with the following status codes: 200 = success (a list of objects is returned; each object has NewEmployeeMessageId and ReadEmployeeMessageId for each of the messages that were marked), 204 = success (no contnent is returned because all supplied messages were already marked as read) 400 = bad request (the request is malformed or with invalid data), 500 = something went wrong (the request was not processed).
Collection of EmployeeMessageIdPair| Name | Description | Type | Additional information |
|---|---|---|---|
| NewEmployeeMessageId | integer |
None. |
|
| ReadEmployeeMessageId | integer |
None. |
Response Formats
application/json, text/json
[
{
"NewEmployeeMessageId": 1,
"ReadEmployeeMessageId": 1
},
{
"NewEmployeeMessageId": 1,
"ReadEmployeeMessageId": 1
}
]
application/xml, text/xml
<ArrayOfEmployeeMessageIdPair xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.DTO">
<EmployeeMessageIdPair>
<NewEmployeeMessageId>1</NewEmployeeMessageId>
<ReadEmployeeMessageId>1</ReadEmployeeMessageId>
</EmployeeMessageIdPair>
<EmployeeMessageIdPair>
<NewEmployeeMessageId>1</NewEmployeeMessageId>
<ReadEmployeeMessageId>1</ReadEmployeeMessageId>
</EmployeeMessageIdPair>
</ArrayOfEmployeeMessageIdPair>