GET Notification/Filtered

Get

Request Information

URI Parameters

None.

Body Parameters

NotificationRequest
NameDescriptionTypeAdditional information
DaysInThePast

Days In The Past, filters logs. Calculated from Today - DaysInThePast

integer

None.

FkDeviceIds

FkDeviceIds

Collection of integer

None.

NotificationMethods

NotificationMethods

Collection of integer

None.

NotificationTypes

NotificationTypes

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DaysInThePast": 1,
  "FkDeviceIds": [
    1,
    2
  ],
  "NotificationMethods": [
    1,
    2
  ],
  "NotificationTypes": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<NotificationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api360.Models">
  <DaysInThePast>1</DaysInThePast>
  <FkDeviceIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </FkDeviceIds>
  <NotificationMethods xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </NotificationMethods>
  <NotificationTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </NotificationTypes>
</NotificationRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'NotificationRequest'.

Response Information

Resource Description

Instance of

NotificationRestResult
NameDescriptionTypeAdditional information
RestItems

Collection of RestItem objects.

Collection of NotificationRestItem

None.

Response Formats

application/json, text/json

Sample:
{
  "RestItems": [
    {
      "Id": 1,
      "Message": "sample string 2",
      "FkDeviceId": 1,
      "FkUserId": 3,
      "Recipient": "sample string 4",
      "TimeStampSending": "2024-04-29T19:48:03.0747191+02:00",
      "NotificationMethod": 6,
      "NotificationType": 7
    },
    {
      "Id": 1,
      "Message": "sample string 2",
      "FkDeviceId": 1,
      "FkUserId": 3,
      "Recipient": "sample string 4",
      "TimeStampSending": "2024-04-29T19:48:03.0747191+02:00",
      "NotificationMethod": 6,
      "NotificationType": 7
    }
  ]
}

application/xml, text/xml

Sample:
<NotificationRestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api360.Models">
  <RestItems>
    <NotificationRestItem>
      <FkDeviceId>1</FkDeviceId>
      <FkUserId>3</FkUserId>
      <Id>1</Id>
      <Message>sample string 2</Message>
      <NotificationMethod>6</NotificationMethod>
      <NotificationType>7</NotificationType>
      <Recipient>sample string 4</Recipient>
      <TimeStampSending>2024-04-29T19:48:03.0747191+02:00</TimeStampSending>
    </NotificationRestItem>
    <NotificationRestItem>
      <FkDeviceId>1</FkDeviceId>
      <FkUserId>3</FkUserId>
      <Id>1</Id>
      <Message>sample string 2</Message>
      <NotificationMethod>6</NotificationMethod>
      <NotificationType>7</NotificationType>
      <Recipient>sample string 4</Recipient>
      <TimeStampSending>2024-04-29T19:48:03.0747191+02:00</TimeStampSending>
    </NotificationRestItem>
  </RestItems>
</NotificationRestResult>