Query the data for a list of tables

post

/data/rest/dataservice/runquery

The result contains the data from specified tables with specified columns. Invalid columns is ignored. There are two extra sections in the result: pagination information and timestamp for next incremental query.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : QueryObject
Type: object
Title: QueryObject
Show Source
  • An optional query name
  • When there is more data on server, the result from last query returns nextKey property. The value comes from last query when there is more data on server.
  • When there is more data on server, the result from last query returns nextTableName property. A value "-1" indicates no more data on server. The value comes from last query when there is more data on server.
  • Minimum Value: 1
    Maximum Value: 10000
    Specifies how many rows returned from this query
  • A database date that the query fetches rows created/updated after it. The value should either be null or returned from last query.
  • tables
    A list of queries for tables
Nested Schema : tables
Type: array
A list of queries for tables
Show Source
Nested Schema : TableQuery
Type: object
Title: TableQuery
A list of queries for tables
Show Source
Nested Schema : columns
Type: array
A comma separated list of columns of the query
Show Source
Nested Schema : condition
The filter of the query
Match All
The filter of the query
Show Source
Nested Schema : joinCondition
Joined tables
Match All
Joined tables
Show Source
Nested Schema : joinedTables
Type: array
Joined tables
Show Source
Nested Schema : Condition
Type: object
Title: Condition
The criteria of the query
Show Source
  • The column name. This property is ignored when the operator is AND/OR.
  • conditions
    List of Conditions if the operator is AND/OR.
  • Allowed Values: [ "AND", "OR", "IS_NULL", "IS_NOT_NULL", "EQUALS", "NOT_EQUALS", "GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUALS", "LESS_THAN_OR_EQUALS", "BETWEEN" ]
    The condition operator
  • The first value of the criteria. When the operator is AND/OR/IS_NULL/IS_NOT_NULL, this property is ignored.
  • The second value of the criteria. This property is used only when the operator is BETWEEN.
Nested Schema : conditions
Type: array
List of Conditions if the operator is AND/OR.
Show Source
Nested Schema : JoinCondition
Type: object
Title: JoinCondition
Joined tables
Show Source
Examples

Back to Top

Response

Supported Media Types

200 Response

API success
Body ()
Root Schema : DataObject
Type: object
Title: DataObject
Show Source
  • data
    Additional Properties Allowed: additionalProperties
    A list of tables, which contains rows of column data. It also returns a database date for next query to retrieve fresh data only. If next query only cares about the data being created/updated after current query, it would supply sinceDate property from current query in the next query. A pagination section is also returned in the response to indicate if there is more data on the server. When nextTableName="-1", no more data available. The next query should use original query PLUS pagination information to retrieve the remaining data on server.
Nested Schema : data
Type: object
Additional Properties Allowed
Show Source
  • additionalProperties
    A list of tables, which contains rows of column data. It also returns a database date for next query to retrieve fresh data only. If next query only cares about the data being created/updated after current query, it would supply sinceDate property from current query in the next query. A pagination section is also returned in the response to indicate if there is more data on the server. When nextTableName="-1", no more data available. The next query should use original query PLUS pagination information to retrieve the remaining data on server.
A list of tables, which contains rows of column data. It also returns a database date for next query to retrieve fresh data only. If next query only cares about the data being created/updated after current query, it would supply sinceDate property from current query in the next query. A pagination section is also returned in the response to indicate if there is more data on the server. When nextTableName="-1", no more data available. The next query should use original query PLUS pagination information to retrieve the remaining data on server.
Nested Schema : additionalProperties
Type: array
A list of tables, which contains rows of column data. It also returns a database date for next query to retrieve fresh data only. If next query only cares about the data being created/updated after current query, it would supply sinceDate property from current query in the next query. A pagination section is also returned in the response to indicate if there is more data on the server. When nextTableName="-1", no more data available. The next query should use original query PLUS pagination information to retrieve the remaining data on server.
Show Source
  • items
    Additional Properties Allowed: additionalProperties
    A list of tables, which contains rows of column data. It also returns a database date for next query to retrieve fresh data only. If next query only cares about the data being created/updated after current query, it would supply sinceDate property from current query in the next query. A pagination section is also returned in the response to indicate if there is more data on the server. When nextTableName="-1", no more data available. The next query should use original query PLUS pagination information to retrieve the remaining data on server.
Nested Schema : items
Type: object
Additional Properties Allowed
Show Source
  • A list of tables, which contains rows of column data. It also returns a database date for next query to retrieve fresh data only. If next query only cares about the data being created/updated after current query, it would supply sinceDate property from current query in the next query. A pagination section is also returned in the response to indicate if there is more data on the server. When nextTableName="-1", no more data available. The next query should use original query PLUS pagination information to retrieve the remaining data on server.
A list of tables, which contains rows of column data. It also returns a database date for next query to retrieve fresh data only. If next query only cares about the data being created/updated after current query, it would supply sinceDate property from current query in the next query. A pagination section is also returned in the response to indicate if there is more data on the server. When nextTableName="-1", no more data available. The next query should use original query PLUS pagination information to retrieve the remaining data on server.

403 Response

You do not have access to the resource.

404 Response

Invalid query
Back to Top