POST public-api/sites/infosearch

This method returns active sites whose site name or site description contains the specified text, similar to the site drop down controls on the web. It returns the site name, the site description and the site notes. It requires the Allow Site permission and enforces Role Site restriction. It returns a maximum of 500 records at a time; sites whose name matches are ordered ahead of those matched on description only. This method does not provide per-record messages; if no site matches the search, the response returns no data and a SITE_INVALID message. Note: This is a Post API to avoid limitations inherent to passing parameters on the URL.



Request Information

URI Parameters

None.

Body Parameters

SiteContainsSearchParameters
NameDescriptionTypeAdditional information
SearchPattern

string

None.

Request Formats

application/json

Sample:
{
  "SearchPattern": "sample string 1"
}



Response Information

Resource Description

WaspResultOfListOfSiteModelInfo
NameDescriptionTypeAdditional information
Data

Collection of SiteModelInfo

None.

Messages

Collection of WtResult

None.

BatchNumber

integer

None.

HasError

boolean

None.

HasHttpError

boolean

None.

HasMessage

boolean

None.

HasSuccessWithMoreDataRemaining

boolean

None.

TotalRecordsLongCount

integer

None.

Response Formats

application/json

Sample:
{
  "Data": [
    {
      "RowNumber": 1,
      "SiteName": "sample string 2",
      "SiteDescription": "sample string 3",
      "LocationCount": 4,
      "SiteRecordStatus": 0,
      "SiteNotes": "sample string 5",
      "AccessAllCatgories": true,
      "AllSiteNotes": [
        {
          "NoteText": "sample string 1",
          "NoteDate": "2026-09-15T18:31:39.8378146+00:00",
          "UserLogon": "sample string 2"
        },
        {
          "NoteText": "sample string 1",
          "NoteDate": "2026-09-15T18:31:39.8378146+00:00",
          "UserLogon": "sample string 2"
        }
      ],
      "CustomFields": [
        {
          "ImportRowNumber": 1,
          "DcfLabel": "sample string 2",
          "DCFDataType": 1,
          "DcfTextValue": "sample string 3",
          "DcfNumberValue": 1.0,
          "DcfDateValue": "2026-09-15T18:31:39.8378146+00:00",
          "DcfValueRecordStatus": 0
        },
        {
          "ImportRowNumber": 1,
          "DcfLabel": "sample string 2",
          "DCFDataType": 1,
          "DcfTextValue": "sample string 3",
          "DcfNumberValue": 1.0,
          "DcfDateValue": "2026-09-15T18:31:39.8378146+00:00",
          "DcfValueRecordStatus": 0
        }
      ],
      "AllowedCategories": [
        "sample string 1",
        "sample string 2"
      ],
      "LastUpdated": "2026-09-15T18:31:39.8378146+00:00"
    },
    {
      "RowNumber": 1,
      "SiteName": "sample string 2",
      "SiteDescription": "sample string 3",
      "LocationCount": 4,
      "SiteRecordStatus": 0,
      "SiteNotes": "sample string 5",
      "AccessAllCatgories": true,
      "AllSiteNotes": [
        {
          "NoteText": "sample string 1",
          "NoteDate": "2026-09-15T18:31:39.8378146+00:00",
          "UserLogon": "sample string 2"
        },
        {
          "NoteText": "sample string 1",
          "NoteDate": "2026-09-15T18:31:39.8378146+00:00",
          "UserLogon": "sample string 2"
        }
      ],
      "CustomFields": [
        {
          "ImportRowNumber": 1,
          "DcfLabel": "sample string 2",
          "DCFDataType": 1,
          "DcfTextValue": "sample string 3",
          "DcfNumberValue": 1.0,
          "DcfDateValue": "2026-09-15T18:31:39.8378146+00:00",
          "DcfValueRecordStatus": 0
        },
        {
          "ImportRowNumber": 1,
          "DcfLabel": "sample string 2",
          "DCFDataType": 1,
          "DcfTextValue": "sample string 3",
          "DcfNumberValue": 1.0,
          "DcfDateValue": "2026-09-15T18:31:39.8378146+00:00",
          "DcfValueRecordStatus": 0
        }
      ],
      "AllowedCategories": [
        "sample string 1",
        "sample string 2"
      ],
      "LastUpdated": "2026-09-15T18:31:39.8378146+00:00"
    }
  ],
  "Messages": [
    {
      "ResultCode": 0,
      "Message": "sample string 1",
      "HttpStatusCode": 200,
      "FieldName": "sample string 2"
    },
    {
      "ResultCode": 0,
      "Message": "sample string 1",
      "HttpStatusCode": 200,
      "FieldName": "sample string 2"
    }
  ],
  "BatchNumber": 1,
  "HasError": false,
  "HasHttpError": false,
  "HasMessage": true,
  "HasSuccessWithMoreDataRemaining": false,
  "TotalRecordsLongCount": 1
}