POST public-api/locations/search/exact

This method gets the location that exactly matches the search string in the specified site. It requires Allow Location permission and access to the site where the location is located.



Request Information

URI Parameters

None.

Body Parameters

LocationSearchSimpleModel
NameDescriptionTypeAdditional information
LocationCode

string

None.

SiteName

string

None.

Request Formats

application/json

Sample:
{
  "LocationCode": "sample string 1",
  "SiteName": "sample string 2"
}



Response Information

Resource Description

WaspResultOfLocationModelSimple
NameDescriptionTypeAdditional information
Data

LocationModelSimple

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",
    "ParentLocationCode": "sample string 2",
    "LocationCode": "sample string 3",
    "LocationDescription": "sample string 4",
    "LocationPrefix": "sample string 5"
  },
  "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
}