POST api/userquery/datasearch

Request Information

URI Parameters

None.

Body Parameters

UserQuerySearchParameter
NameDescriptionTypeAdditional information
QueryType

QueryType

None.

SearchFields

Collection of KeyValueSearch

None.

UserQueryID

integer

None.

ProcessID

integer

None.

Keyword

string

None.

DateFrom

date

None.

DateTo

date

None.

LoginUserId

integer

None.

IsPublicUser

boolean

None.

PublicAccountID

integer

None.

TenantID

integer

None.

PageNo

integer

None.

RowLimit

integer

None.

RecordCount

integer

None.

Offset

integer

None.

PageCount

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "QueryType": 1,
  "SearchFields": [
    {
      "FieldName": "sample string 1",
      "Value": {},
      "EqualityType": 0
    },
    {
      "FieldName": "sample string 1",
      "Value": {},
      "EqualityType": 0
    }
  ],
  "UserQueryID": 1,
  "ProcessID": 2,
  "Keyword": "sample string 3",
  "DateFrom": "2025-10-26T11:15:49.4398964+08:00",
  "DateTo": "2025-10-26T11:15:49.4398964+08:00",
  "LoginUserId": 4,
  "IsPublicUser": true,
  "PublicAccountID": 6,
  "TenantID": 7,
  "PageNo": 8,
  "RowLimit": 9,
  "RecordCount": 10,
  "Offset": 63,
  "PageCount": 2
}

application/xml, text/xml

Sample:
<UserQuerySearchParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO.DataQuery">
  <PageNo xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">8</PageNo>
  <RecordCount xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">10</RecordCount>
  <RowLimit xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">9</RowLimit>
  <DateFrom xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">2025-10-26T11:15:49.4398964+08:00</DateFrom>
  <DateTo xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">2025-10-26T11:15:49.4398964+08:00</DateTo>
  <IsPublicUser xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">true</IsPublicUser>
  <Keyword xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">sample string 3</Keyword>
  <LoginUserId xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">4</LoginUserId>
  <PublicAccountID xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">6</PublicAccountID>
  <TenantID xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">7</TenantID>
  <ProcessID>2</ProcessID>
  <QueryType>UserQuery</QueryType>
  <SearchFields xmlns:d2p1="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">
    <d2p1:KeyValueSearch>
      <d2p1:EqualityType>NA</d2p1:EqualityType>
      <d2p1:FieldName>sample string 1</d2p1:FieldName>
      <d2p1:Value />
    </d2p1:KeyValueSearch>
    <d2p1:KeyValueSearch>
      <d2p1:EqualityType>NA</d2p1:EqualityType>
      <d2p1:FieldName>sample string 1</d2p1:FieldName>
      <d2p1:Value />
    </d2p1:KeyValueSearch>
  </SearchFields>
  <UserQueryID>1</UserQueryID>
</UserQuerySearchParameter>

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 'UserQuerySearchParameter'.

Response Information

Resource Description

DataTable
NameDescriptionTypeAdditional information
CaseSensitive

boolean

None.

IsInitialized

boolean

None.

RemotingFormat

SerializationFormat

None.

ChildRelations

Collection of Object

None.

Columns

Collection of Object

None.

Constraints

Collection of Object

None.

DataSet

DataSet

None.

DefaultView

Collection of Object

None.

DisplayExpression

string

None.

ExtendedProperties

Dictionary of Object [key] and Object [value]

None.

HasErrors

boolean

None.

Locale

CultureInfo

None.

MinimumCapacity

integer

None.

ParentRelations

Collection of Object

None.

PrimaryKey

Collection of DataColumn

None.

Rows

Collection of Object

None.

TableName

string

None.

Namespace

string

None.

Prefix

string

None.

Site

ISite

None.

Container

IContainer

None.

DesignMode

boolean

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.