POST api/Announcement/Search

Search Announcement

Request Information

URI Parameters

None.

Body Parameters

AnnouncementSearchFilter
NameDescriptionTypeAdditional information
SearchText

string

None.

StatusAnnouncement

Collection of integer

None.

StatusRead

Collection of integer

None.

StartFromDate

date

None.

StartToDate

date

None.

EndFromDate

date

None.

EndToDate

date

None.

PageSize

integer

None.

CurrentPage

integer

None.

SortBy

string

None.

SortType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SearchText": "sample string 1",
  "StatusAnnouncement": [
    1,
    2
  ],
  "StatusRead": [
    1,
    2
  ],
  "StartFromDate": "2026-04-01T16:48:43.186569+07:00",
  "StartToDate": "2026-04-01T16:48:43.186569+07:00",
  "EndFromDate": "2026-04-01T16:48:43.186569+07:00",
  "EndToDate": "2026-04-01T16:48:43.186569+07:00",
  "PageSize": 2,
  "CurrentPage": 3,
  "SortBy": "sample string 4",
  "SortType": "sample string 5"
}

text/html

Sample:
{"SearchText":"sample string 1","StatusAnnouncement":[1,2],"StatusRead":[1,2],"StartFromDate":"2026-04-01T16:48:43.186569+07:00","StartToDate":"2026-04-01T16:48:43.186569+07:00","EndFromDate":"2026-04-01T16:48:43.186569+07:00","EndToDate":"2026-04-01T16:48:43.186569+07:00","PageSize":2,"CurrentPage":3,"SortBy":"sample string 4","SortType":"sample string 5"}

application/xml, text/xml

Sample:
<AnnouncementSearchFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TTMWM_MECLAIM_API.ViewModels">
  <CurrentPage>3</CurrentPage>
  <EndFromDate>2026-04-01T16:48:43.186569+07:00</EndFromDate>
  <EndToDate>2026-04-01T16:48:43.186569+07:00</EndToDate>
  <PageSize>2</PageSize>
  <SearchText>sample string 1</SearchText>
  <SortBy>sample string 4</SortBy>
  <SortType>sample string 5</SortType>
  <StartFromDate>2026-04-01T16:48:43.186569+07:00</StartFromDate>
  <StartToDate>2026-04-01T16:48:43.186569+07:00</StartToDate>
  <StatusAnnouncement xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </StatusAnnouncement>
  <StatusRead xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </StatusRead>
</AnnouncementSearchFilter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

List of announcement

ServiceResultTypedOfAnnouncementSearchResult
NameDescriptionTypeAdditional information
Code

integer

None.

Errors

Collection of string

None.

Data

AnnouncementSearchResult

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": 1,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "Data": {
    "TotalRows": 1,
    "AnnouncementsList": [
      {
        "Id": 1,
        "RowNo": 2,
        "Title": "sample string 3",
        "ImageId": 1,
        "Content": "sample string 4",
        "StatusId": 5,
        "StatusStr": "sample string 6",
        "TotalTarget": 1,
        "TotalRead": 1,
        "TotalUnread": 1,
        "TotalTargetStr": "sample string 7",
        "TotalReadStr": "sample string 8",
        "TotalUnreadStr": "sample string 9",
        "StartDate": "2026-04-01T16:48:43.1925664+07:00",
        "StartDateStr": "sample string 11",
        "EndDate": "2026-04-01T16:48:43.1925664+07:00",
        "EndDateStr": "sample string 13",
        "CreatedDate": "2026-04-01T16:48:43.1925664+07:00",
        "CreatedDateStr": "sample string 15",
        "UpdatedDate": "2026-04-01T16:48:43.1925664+07:00",
        "UpdatedDateStr": "sample string 17",
        "ImageName": "sample string 18",
        "ImageUrl": "sample string 19",
        "UserNotifications": [
          {
            "RowNumber": 1,
            "UserId": 2,
            "EmployeeId": 3,
            "EmployeeNo": "sample string 4",
            "EmployeeName": "sample string 5"
          },
          {
            "RowNumber": 1,
            "UserId": 2,
            "EmployeeId": 3,
            "EmployeeNo": "sample string 4",
            "EmployeeName": "sample string 5"
          }
        ]
      },
      {
        "Id": 1,
        "RowNo": 2,
        "Title": "sample string 3",
        "ImageId": 1,
        "Content": "sample string 4",
        "StatusId": 5,
        "StatusStr": "sample string 6",
        "TotalTarget": 1,
        "TotalRead": 1,
        "TotalUnread": 1,
        "TotalTargetStr": "sample string 7",
        "TotalReadStr": "sample string 8",
        "TotalUnreadStr": "sample string 9",
        "StartDate": "2026-04-01T16:48:43.1925664+07:00",
        "StartDateStr": "sample string 11",
        "EndDate": "2026-04-01T16:48:43.1925664+07:00",
        "EndDateStr": "sample string 13",
        "CreatedDate": "2026-04-01T16:48:43.1925664+07:00",
        "CreatedDateStr": "sample string 15",
        "UpdatedDate": "2026-04-01T16:48:43.1925664+07:00",
        "UpdatedDateStr": "sample string 17",
        "ImageName": "sample string 18",
        "ImageUrl": "sample string 19",
        "UserNotifications": [
          {
            "RowNumber": 1,
            "UserId": 2,
            "EmployeeId": 3,
            "EmployeeNo": "sample string 4",
            "EmployeeName": "sample string 5"
          },
          {
            "RowNumber": 1,
            "UserId": 2,
            "EmployeeId": 3,
            "EmployeeNo": "sample string 4",
            "EmployeeName": "sample string 5"
          }
        ]
      }
    ]
  }
}

text/html

Sample:
{"Code":1,"Errors":["sample string 1","sample string 2"],"Data":{"TotalRows":1,"AnnouncementsList":[{"Id":1,"RowNo":2,"Title":"sample string 3","ImageId":1,"Content":"sample string 4","StatusId":5,"StatusStr":"sample string 6","TotalTarget":1,"TotalRead":1,"TotalUnread":1,"TotalTargetStr":"sample string 7","TotalReadStr":"sample string 8","TotalUnreadStr":"sample string 9","StartDate":"2026-04-01T16:48:43.1925664+07:00","StartDateStr":"sample string 11","EndDate":"2026-04-01T16:48:43.1925664+07:00","EndDateStr":"sample string 13","CreatedDate":"2026-04-01T16:48:43.1925664+07:00","CreatedDateStr":"sample string 15","UpdatedDate":"2026-04-01T16:48:43.1925664+07:00","UpdatedDateStr":"sample string 17","ImageName":"sample string 18","ImageUrl":"sample string 19","UserNotifications":[{"RowNumber":1,"UserId":2,"EmployeeId":3,"EmployeeNo":"sample string 4","EmployeeName":"sample string 5"},{"RowNumber":1,"UserId":2,"EmployeeId":3,"EmployeeNo":"sample string 4","EmployeeName":"sample string 5"}]},{"Id":1,"RowNo":2,"Title":"sample string 3","ImageId":1,"Content":"sample string 4","StatusId":5,"StatusStr":"sample string 6","TotalTarget":1,"TotalRead":1,"TotalUnread":1,"TotalTargetStr":"sample string 7","TotalReadStr":"sample string 8","TotalUnreadStr":"sample string 9","StartDate":"2026-04-01T16:48:43.1925664+07:00","StartDateStr":"sample string 11","EndDate":"2026-04-01T16:48:43.1925664+07:00","EndDateStr":"sample string 13","CreatedDate":"2026-04-01T16:48:43.1925664+07:00","CreatedDateStr":"sample string 15","UpdatedDate":"2026-04-01T16:48:43.1925664+07:00","UpdatedDateStr":"sample string 17","ImageName":"sample string 18","ImageUrl":"sample string 19","UserNotifications":[{"RowNumber":1,"UserId":2,"EmployeeId":3,"EmployeeNo":"sample string 4","EmployeeName":"sample string 5"},{"RowNumber":1,"UserId":2,"EmployeeId":3,"EmployeeNo":"sample string 4","EmployeeName":"sample string 5"}]}]}}

application/xml, text/xml

Sample:
<ServiceResultTypedOfAnnouncementSearchResultYj8O1tFc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LSW.Common.Models">
  <Code>1</Code>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TTMWM_MECLAIM_API.ViewModels">
    <d2p1:AnnouncementsList>
      <d2p1:AnnouncementDetail>
        <d2p1:Content>sample string 4</d2p1:Content>
        <d2p1:CreatedDate>2026-04-01T16:48:43.1925664+07:00</d2p1:CreatedDate>
        <d2p1:CreatedDateStr>sample string 15</d2p1:CreatedDateStr>
        <d2p1:EndDate>2026-04-01T16:48:43.1925664+07:00</d2p1:EndDate>
        <d2p1:EndDateStr>sample string 13</d2p1:EndDateStr>
        <d2p1:Id>1</d2p1:Id>
        <d2p1:ImageId>1</d2p1:ImageId>
        <d2p1:ImageName>sample string 18</d2p1:ImageName>
        <d2p1:ImageUrl>sample string 19</d2p1:ImageUrl>
        <d2p1:RowNo>2</d2p1:RowNo>
        <d2p1:StartDate>2026-04-01T16:48:43.1925664+07:00</d2p1:StartDate>
        <d2p1:StartDateStr>sample string 11</d2p1:StartDateStr>
        <d2p1:StatusId>5</d2p1:StatusId>
        <d2p1:StatusStr>sample string 6</d2p1:StatusStr>
        <d2p1:Title>sample string 3</d2p1:Title>
        <d2p1:TotalRead>1</d2p1:TotalRead>
        <d2p1:TotalReadStr>sample string 8</d2p1:TotalReadStr>
        <d2p1:TotalTarget>1</d2p1:TotalTarget>
        <d2p1:TotalTargetStr>sample string 7</d2p1:TotalTargetStr>
        <d2p1:TotalUnread>1</d2p1:TotalUnread>
        <d2p1:TotalUnreadStr>sample string 9</d2p1:TotalUnreadStr>
        <d2p1:UpdatedDate>2026-04-01T16:48:43.1925664+07:00</d2p1:UpdatedDate>
        <d2p1:UpdatedDateStr>sample string 17</d2p1:UpdatedDateStr>
        <d2p1:UserNotifications>
          <d2p1:AnnouncementUserNotification>
            <d2p1:EmployeeId>3</d2p1:EmployeeId>
            <d2p1:EmployeeName>sample string 5</d2p1:EmployeeName>
            <d2p1:EmployeeNo>sample string 4</d2p1:EmployeeNo>
            <d2p1:RowNumber>1</d2p1:RowNumber>
            <d2p1:UserId>2</d2p1:UserId>
          </d2p1:AnnouncementUserNotification>
          <d2p1:AnnouncementUserNotification>
            <d2p1:EmployeeId>3</d2p1:EmployeeId>
            <d2p1:EmployeeName>sample string 5</d2p1:EmployeeName>
            <d2p1:EmployeeNo>sample string 4</d2p1:EmployeeNo>
            <d2p1:RowNumber>1</d2p1:RowNumber>
            <d2p1:UserId>2</d2p1:UserId>
          </d2p1:AnnouncementUserNotification>
        </d2p1:UserNotifications>
      </d2p1:AnnouncementDetail>
      <d2p1:AnnouncementDetail>
        <d2p1:Content>sample string 4</d2p1:Content>
        <d2p1:CreatedDate>2026-04-01T16:48:43.1925664+07:00</d2p1:CreatedDate>
        <d2p1:CreatedDateStr>sample string 15</d2p1:CreatedDateStr>
        <d2p1:EndDate>2026-04-01T16:48:43.1925664+07:00</d2p1:EndDate>
        <d2p1:EndDateStr>sample string 13</d2p1:EndDateStr>
        <d2p1:Id>1</d2p1:Id>
        <d2p1:ImageId>1</d2p1:ImageId>
        <d2p1:ImageName>sample string 18</d2p1:ImageName>
        <d2p1:ImageUrl>sample string 19</d2p1:ImageUrl>
        <d2p1:RowNo>2</d2p1:RowNo>
        <d2p1:StartDate>2026-04-01T16:48:43.1925664+07:00</d2p1:StartDate>
        <d2p1:StartDateStr>sample string 11</d2p1:StartDateStr>
        <d2p1:StatusId>5</d2p1:StatusId>
        <d2p1:StatusStr>sample string 6</d2p1:StatusStr>
        <d2p1:Title>sample string 3</d2p1:Title>
        <d2p1:TotalRead>1</d2p1:TotalRead>
        <d2p1:TotalReadStr>sample string 8</d2p1:TotalReadStr>
        <d2p1:TotalTarget>1</d2p1:TotalTarget>
        <d2p1:TotalTargetStr>sample string 7</d2p1:TotalTargetStr>
        <d2p1:TotalUnread>1</d2p1:TotalUnread>
        <d2p1:TotalUnreadStr>sample string 9</d2p1:TotalUnreadStr>
        <d2p1:UpdatedDate>2026-04-01T16:48:43.1925664+07:00</d2p1:UpdatedDate>
        <d2p1:UpdatedDateStr>sample string 17</d2p1:UpdatedDateStr>
        <d2p1:UserNotifications>
          <d2p1:AnnouncementUserNotification>
            <d2p1:EmployeeId>3</d2p1:EmployeeId>
            <d2p1:EmployeeName>sample string 5</d2p1:EmployeeName>
            <d2p1:EmployeeNo>sample string 4</d2p1:EmployeeNo>
            <d2p1:RowNumber>1</d2p1:RowNumber>
            <d2p1:UserId>2</d2p1:UserId>
          </d2p1:AnnouncementUserNotification>
          <d2p1:AnnouncementUserNotification>
            <d2p1:EmployeeId>3</d2p1:EmployeeId>
            <d2p1:EmployeeName>sample string 5</d2p1:EmployeeName>
            <d2p1:EmployeeNo>sample string 4</d2p1:EmployeeNo>
            <d2p1:RowNumber>1</d2p1:RowNumber>
            <d2p1:UserId>2</d2p1:UserId>
          </d2p1:AnnouncementUserNotification>
        </d2p1:UserNotifications>
      </d2p1:AnnouncementDetail>
    </d2p1:AnnouncementsList>
    <d2p1:TotalRows>1</d2p1:TotalRows>
  </Data>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
</ServiceResultTypedOfAnnouncementSearchResultYj8O1tFc>