POST public-api/sites/search/exact

This method gets the site that exactly matches the search string. It requires the Allow Site permission and enforces Role Site restriction.



Request Information

URI Parameters

None.

Body Parameters

SearchStringClass
NameDescriptionTypeAdditional information
SearchString

string

None.

Request Formats

application/json

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



Response Information

Resource Description

WaspResultOfSiteModelSimple
NameDescriptionTypeAdditional information
Data

SiteModelSimple

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": {
    "SiteName": "sample string 1",
    "SiteDescription": "sample string 2",
    "HasCategoryRestrictions": true
  },
  "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
}