Query tables data.

post

/pds/rest-service/dataservice/runquery

Send a request to this endpoint to query databases registerd with Primavera data service. This endpoint returns either jobId or query results including with pagination, sinceDate, generated SQL query, current page record count and total records count.

Request

Supported Media Types
Query Parameters
Body ()
The query details in json format.
Root Schema : QueryObject
Type: object
The input object to fetch table data.
Show Source
Nested Schema : tables
Type: array
A list of queries for tables.
Show Source
Example:
  "tables": [    {      "tableName": "Activity",      "columns": [        "ACTIVITY_ID",        "Name",        "ACTIVITY_TYPE",        "STATUS",        "START_DATE",        "Finish"      ],      "condition": {        "operator": "AND",        "conditions": [          {            "columnName": "Planned Duration",            "operator": "GREATER_THAN_OR_EQUALS",            "value1": "1200"          },          {            "columnName": "PROJ_ID",            "operator": "EQUALS",            "value1": "1"          }        ]      }    }  ]
Nested Schema : TableQuery
Type: object
Show Source
Nested Schema : columns
Type: array
A comma separated list of columns.
Show Source
Nested Schema : The criteria of the query
Type: object
Show Source
Nested Schema : joinedTables
Type: array
Joined tables.
Show Source
Nested Schema : conditions
Type: array
List of Conditions if the operator is AND/OR.
Show Source
Nested Schema : joinConditions
Type: array
List of Join Conditions with operator AND for an inner table
Show Source
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : DataObject
Type: object
The response entity.
Show Source
Nested Schema : data
Type: object
Additional Properties Allowed
Show Source
The query response which contains pagination and sinceDate details.This will exists in response only if the mode is SYNC.
Nested Schema : additionalProperties
Type: array
Show Source
Nested Schema : items
Type: object
Additional Properties Allowed
Show Source

202 Response

Request Accepted

400 Response

Bad Request

500 Response

Internal Server Error

503 Response

Service Unavailable
Back to Top