GET /mcmessages/unitMessages
Retrieves all current (uncleared) messages for the specified unit and parameters.
Roles that can access this endpoint are Users, Drivers.
Parameters
name |
description |
type |
default |
type |
unitId |
ID of the unit for which messages are to be retrieved |
query
|
|
String
|
messageType |
whether to display (I)nbound, (O)utbound messages or (B)oth inbound and outbound (default) |
query
|
B |
String
|
unreadOnly |
whether to include read messages |
query
|
false |
Boolean
|
daysToShow |
number of days back to show messages |
query
|
|
int
|
Result
List
<
RowMcMessage
>
of type:
application/xml
application/json
a list of RowMcMessage objects
Child Elements:
RowUsers
This element represent the user associated with the message, by the mc_message.mc_user_id
field.
The element contains a __name
attribute with the value mcUser
.
Try It Out
Request