{
    "openapi":"3.0.1",
    "info":{
        "title":"Primavera Data Service Version 26",
        "version":"2026.01.08",
        "description":"Rest API Access to the Primavera Data Service updated for openapi 3",
        "x-summary":"Rest API Access to the Primavera Data Service updated for openapi 3"
    },
    "servers":[
        {
            "url":"/pds/rest-service"
        }
    ],
    "tags":[
        {
            "name":"PrimaveraDataService"
        }
    ],
    "paths":{
        "/dataservice/download/{jobId}":{
            "get":{
                "tags":[
                    "PrimaveraDataService"
                ],
                "summary":"Download ZIP Data",
                "description":"Send a request to download zip file using job id. This Endpoint returns response in zip file.",
                "operationId":"/dataservice/download/{jobId}_download",
                "parameters":[
                    {
                        "name":"jobId",
                        "in":"path",
                        "description":"The unique identifier of a scheduled job.",
                        "required":true,
                        "schema":{
                            "type":"string",
                            "format":"uuid",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ]
                        }
                    }
                ],
                "responses":{
                    "400":{
                        "description":"Bad Request"
                    },
                    "500":{
                        "description":"Internal Server Error"
                    },
                    "200":{
                        "description":"Zip file",
                        "content":{
                            "application/octet-stream":{
                                "exampleSetFlag":false
                            }
                        }
                    }
                },
                "x-internal-id":"dataservice-download-{jobId}-get",
                "x-filename-id":"dataservice-download-jobid-get"
            }
        },
        "/dataservice/jobStatus":{
            "post":{
                "tags":[
                    "PrimaveraDataService"
                ],
                "summary":"View Job Status",
                "description":"Send a request to view job details. This endpoint will return list of job details.",
                "operationId":"/dataservice/jobStatus_getJobDetails",
                "requestBody":{
                    "description":"Filter conditions.",
                    "content":{
                        "application/json":{
                            "schema":{
                                "title":"JobFilterRO",
                                "$ref":"#/components/schemas/JobFilterRO",
                                "exampleSetFlag":false
                            },
                            "exampleSetFlag":false
                        }
                    }
                },
                "responses":{
                    "200":{
                        "description":"Successful Operation",
                        "content":{
                            "application/json":{
                                "schema":{
                                    "title":"List<JobDetailsRO>",
                                    "type":"array",
                                    "exampleSetFlag":false,
                                    "items":{
                                        "$ref":"#/components/schemas/JobDetailsRO",
                                        "exampleSetFlag":false
                                    },
                                    "types":[
                                        "array"
                                    ]
                                },
                                "exampleSetFlag":false
                            }
                        }
                    },
                    "204":{
                        "description":"No Content"
                    },
                    "500":{
                        "description":"Internal Server Error"
                    }
                },
                "x-internal-id":"dataservice-jobStatus-post",
                "x-filename-id":"dataservice-jobstatus-post"
            }
        },
        "/dataservice/runquery":{
            "post":{
                "tags":[
                    "PrimaveraDataService"
                ],
                "summary":"Query Tables Data",
                "description":"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.",
                "operationId":"/dataservice/runquery_queryData",
                "parameters":[
                    {
                        "name":"configCode",
                        "in":"query",
                        "description":"The configuration name.",
                        "required":true,
                        "schema":{
                            "type":"string",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ],
                            "enum":[
                                "ds_p6adminuser",
                                "ds_p6reportuser",
                                "ds_unifier"
                            ]
                        }
                    }
                ],
                "requestBody":{
                    "description":"The query details in json format.",
                    "content":{
                        "application/json":{
                            "schema":{
                                "title":"QueryObject",
                                "$ref":"#/components/schemas/QueryObject",
                                "exampleSetFlag":false
                            },
                            "exampleSetFlag":false
                        }
                    },
                    "required":true
                },
                "responses":{
                    "400":{
                        "description":"Bad Request"
                    },
                    "500":{
                        "description":"Internal Server Error"
                    },
                    "503":{
                        "description":"Service Unavailable"
                    },
                    "202":{
                        "description":"Accepted"
                    },
                    "200":{
                        "description":"Successful Operation",
                        "content":{
                            "application/json":{
                                "schema":{
                                    "title":"DataObject",
                                    "$ref":"#/components/schemas/DataObject",
                                    "exampleSetFlag":false
                                },
                                "exampleSetFlag":false
                            }
                        }
                    }
                },
                "x-internal-id":"dataservice-runquery-post",
                "x-filename-id":"dataservice-runquery-post"
            }
        },
        "/v2/dataservice/download/{jobId}":{
            "get":{
                "tags":[
                    "PrimaveraDataService"
                ],
                "summary":"Download ZIP Data",
                "description":"Send a request to download zip file using job id. This Endpoint returns response in zip file.",
                "operationId":"/v2/dataservice/download/{jobId}_download_1",
                "parameters":[
                    {
                        "name":"jobId",
                        "in":"path",
                        "description":"The unique identifier of a scheduled job.",
                        "required":true,
                        "schema":{
                            "type":"string",
                            "format":"uuid",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ]
                        }
                    }
                ],
                "responses":{
                    "400":{
                        "description":"Bad Request"
                    },
                    "500":{
                        "description":"Internal Server Error"
                    },
                    "200":{
                        "description":"Zip file",
                        "content":{
                            "application/octet-stream":{
                                "exampleSetFlag":false
                            }
                        }
                    }
                },
                "x-internal-id":"v2-dataservice-download-{jobId}-get",
                "x-filename-id":"v2-dataservice-download-jobid-get"
            }
        },
        "/v2/dataservice/jobStatus":{
            "post":{
                "tags":[
                    "PrimaveraDataService"
                ],
                "summary":"View Job Status",
                "description":"Send a request to view job details. This endpoint will return list of job details.",
                "operationId":"/v2/dataservice/jobStatus_getJobDetails_1",
                "requestBody":{
                    "description":"Filter conditions.",
                    "content":{
                        "application/json":{
                            "schema":{
                                "title":"JobFilterRO",
                                "$ref":"#/components/schemas/JobFilterRO",
                                "exampleSetFlag":false
                            },
                            "exampleSetFlag":false
                        }
                    }
                },
                "responses":{
                    "200":{
                        "description":"Successful Operation",
                        "content":{
                            "application/json":{
                                "schema":{
                                    "title":"List<JobDetailsRO>",
                                    "type":"array",
                                    "exampleSetFlag":false,
                                    "items":{
                                        "$ref":"#/components/schemas/JobDetailsRO",
                                        "exampleSetFlag":false
                                    },
                                    "types":[
                                        "array"
                                    ]
                                },
                                "exampleSetFlag":false
                            }
                        }
                    },
                    "204":{
                        "description":"No Content"
                    },
                    "500":{
                        "description":"Internal Server Error"
                    }
                },
                "x-internal-id":"v2-dataservice-jobStatus-post",
                "x-filename-id":"v2-dataservice-jobstatus-post"
            }
        },
        "/v2/dataservice/runquery":{
            "post":{
                "tags":[
                    "PrimaveraDataService"
                ],
                "summary":"Query Tables Data",
                "description":"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.",
                "operationId":"/v2/dataservice/runquery_queryData_1",
                "parameters":[
                    {
                        "name":"configCode",
                        "in":"query",
                        "description":"The configuration name.",
                        "required":true,
                        "schema":{
                            "type":"string",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ],
                            "enum":[
                                "ds_p6adminuser",
                                "ds_p6reportuser",
                                "ds_unifier"
                            ]
                        }
                    }
                ],
                "requestBody":{
                    "description":"The query details in json format.",
                    "content":{
                        "application/json":{
                            "schema":{
                                "title":"QueryObject",
                                "$ref":"#/components/schemas/QueryObject",
                                "exampleSetFlag":false
                            },
                            "exampleSetFlag":false
                        }
                    },
                    "required":true
                },
                "responses":{
                    "400":{
                        "description":"Bad Request"
                    },
                    "500":{
                        "description":"Internal Server Error"
                    },
                    "503":{
                        "description":"Service Unavailable"
                    },
                    "202":{
                        "description":"Accepted"
                    },
                    "200":{
                        "description":"Successful Operation",
                        "content":{
                            "application/json":{
                                "schema":{
                                    "title":"DataObject",
                                    "$ref":"#/components/schemas/DataObject",
                                    "exampleSetFlag":false
                                },
                                "exampleSetFlag":false
                            }
                        }
                    }
                },
                "x-internal-id":"v2-dataservice-runquery-post",
                "x-filename-id":"v2-dataservice-runquery-post"
            }
        },
        "/dataservice/metadata/columns/{tableName}":{
            "get":{
                "tags":[
                    "PrimaveraDataService"
                ],
                "summary":"Get Columns Metadata of Table",
                "description":"Send a request to this endpoint to fetch specified table columns info for specified configuration name. This endpoint will returns all columns associate with requested table and configuration name.",
                "operationId":"/dataservice/metadata/columns/{tableName}_getColumnsForTableMetadata",
                "parameters":[
                    {
                        "name":"tableName",
                        "in":"path",
                        "description":"The table name.",
                        "required":true,
                        "schema":{
                            "type":"string",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ]
                        }
                    },
                    {
                        "name":"configCode",
                        "in":"query",
                        "description":"The configuration name.",
                        "required":true,
                        "schema":{
                            "type":"string",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ],
                            "enum":[
                                "ds_p6adminuser",
                                "ds_p6reportuser",
                                "ds_unifier"
                            ]
                        }
                    }
                ],
                "responses":{
                    "200":{
                        "description":"Successful Operation",
                        "content":{
                            "application/json":{
                                "schema":{
                                    "title":"List<MDColumnRO>",
                                    "type":"array",
                                    "exampleSetFlag":false,
                                    "items":{
                                        "$ref":"#/components/schemas/MDColumnRO",
                                        "exampleSetFlag":false
                                    },
                                    "types":[
                                        "array"
                                    ]
                                },
                                "exampleSetFlag":false
                            }
                        }
                    },
                    "400":{
                        "description":"Bad Request"
                    },
                    "500":{
                        "description":"Internal Server Error"
                    }
                },
                "x-internal-id":"dataservice-metadata-columns-{tableName}-get",
                "x-filename-id":"dataservice-metadata-columns-tablename-get"
            }
        },
        "/dataservice/metadata/tables":{
            "get":{
                "tags":[
                    "PrimaveraDataService"
                ],
                "summary":"Get Tables Metadata",
                "description":"Send a request to this endpoint to fetch tables metadata for specified configuration name. This endpoint will returns all tables metadata associate with requested configuration name.",
                "operationId":"/dataservice/metadata/tables_getTableMetadata",
                "parameters":[
                    {
                        "name":"configCode",
                        "in":"query",
                        "description":"The configuration name.",
                        "required":true,
                        "schema":{
                            "type":"string",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ],
                            "enum":[
                                "ds_p6adminuser",
                                "ds_p6reportuser",
                                "ds_unifier"
                            ]
                        }
                    }
                ],
                "responses":{
                    "200":{
                        "description":"Successful Operation",
                        "content":{
                            "application/json":{
                                "schema":{
                                    "title":"List<MDTableRO>",
                                    "type":"array",
                                    "exampleSetFlag":false,
                                    "items":{
                                        "$ref":"#/components/schemas/MDTableRO",
                                        "exampleSetFlag":false
                                    },
                                    "types":[
                                        "array"
                                    ]
                                },
                                "exampleSetFlag":false
                            }
                        }
                    },
                    "500":{
                        "description":"Internal Server Error"
                    },
                    "400":{
                        "description":"Bad Request"
                    }
                },
                "x-internal-id":"dataservice-metadata-tables-get",
                "x-filename-id":"dataservice-metadata-tables-get"
            }
        },
        "/dataservice/metadata/refresh":{
            "post":{
                "tags":[
                    "PrimaveraDataService"
                ],
                "summary":"Sync Metadata",
                "description":"Send a request to this endpoint to sync P6/Unifier Metadata with Primavera Data Service. This is an asynchronous job and it will return a endpoint details to track the status of the job.",
                "operationId":"/dataservice/metadata/refresh_refreshConfig",
                "parameters":[
                    {
                        "name":"configCode",
                        "in":"query",
                        "description":"The configuration name.",
                        "required":true,
                        "schema":{
                            "type":"string",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ],
                            "enum":[
                                "ds_p6adminuser",
                                "ds_p6reportuser",
                                "ds_unifier"
                            ]
                        }
                    }
                ],
                "responses":{
                    "202":{
                        "description":"Accepted"
                    },
                    "400":{
                        "description":"Bad Request"
                    },
                    "500":{
                        "description":"Internal Server Error"
                    },
                    "200":{
                        "description":"The response contains URL of endpoint to view metadata seed status.",
                        "content":{
                            "application/json":{
                                "exampleSetFlag":false
                            }
                        }
                    }
                },
                "x-internal-id":"dataservice-metadata-refresh-post",
                "x-filename-id":"dataservice-metadata-refresh-post"
            }
        },
        "/v2/dataservice/metadata/columns/{tableName}":{
            "get":{
                "tags":[
                    "PrimaveraDataService"
                ],
                "summary":"Get Columns Metadata of Table",
                "description":"Send a request to this endpoint to fetch specified table columns info for specified configuration name. This endpoint will returns all columns associate with requested table and configuration name.",
                "operationId":"/v2/dataservice/metadata/columns/{tableName}_getColumnsForTableMetadata_1",
                "parameters":[
                    {
                        "name":"tableName",
                        "in":"path",
                        "description":"The table name.",
                        "required":true,
                        "schema":{
                            "type":"string",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ]
                        }
                    },
                    {
                        "name":"configCode",
                        "in":"query",
                        "description":"The configuration name.",
                        "required":true,
                        "schema":{
                            "type":"string",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ],
                            "enum":[
                                "ds_p6adminuser",
                                "ds_p6reportuser",
                                "ds_unifier"
                            ]
                        }
                    }
                ],
                "responses":{
                    "200":{
                        "description":"Successful Operation",
                        "content":{
                            "application/json":{
                                "schema":{
                                    "title":"List<MDColumnRO>",
                                    "type":"array",
                                    "exampleSetFlag":false,
                                    "items":{
                                        "$ref":"#/components/schemas/MDColumnRO",
                                        "exampleSetFlag":false
                                    },
                                    "types":[
                                        "array"
                                    ]
                                },
                                "exampleSetFlag":false
                            }
                        }
                    },
                    "400":{
                        "description":"Bad Request"
                    },
                    "500":{
                        "description":"Internal Server Error"
                    }
                },
                "x-internal-id":"v2-dataservice-metadata-columns-{tableName}-get",
                "x-filename-id":"v2-dataservice-metadata-columns-tablename-get"
            }
        },
        "/v2/dataservice/metadata/tables":{
            "get":{
                "tags":[
                    "PrimaveraDataService"
                ],
                "summary":"Get Tables Metadata",
                "description":"Send a request to this endpoint to fetch tables metadata for specified configuration name. This endpoint will returns all tables metadata associate with requested configuration name.",
                "operationId":"/v2/dataservice/metadata/tables_getTableMetadata_1",
                "parameters":[
                    {
                        "name":"configCode",
                        "in":"query",
                        "description":"The configuration name.",
                        "required":true,
                        "schema":{
                            "type":"string",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ],
                            "enum":[
                                "ds_p6adminuser",
                                "ds_p6reportuser",
                                "ds_unifier"
                            ]
                        }
                    }
                ],
                "responses":{
                    "200":{
                        "description":"Successful Operation",
                        "content":{
                            "application/json":{
                                "schema":{
                                    "title":"List<MDTableRO>",
                                    "type":"array",
                                    "exampleSetFlag":false,
                                    "items":{
                                        "$ref":"#/components/schemas/MDTableRO",
                                        "exampleSetFlag":false
                                    },
                                    "types":[
                                        "array"
                                    ]
                                },
                                "exampleSetFlag":false
                            }
                        }
                    },
                    "500":{
                        "description":"Internal Server Error"
                    },
                    "400":{
                        "description":"Bad Request"
                    }
                },
                "x-internal-id":"v2-dataservice-metadata-tables-get",
                "x-filename-id":"v2-dataservice-metadata-tables-get"
            }
        },
        "/v2/dataservice/metadata/refresh":{
            "post":{
                "tags":[
                    "PrimaveraDataService"
                ],
                "summary":"Sync Metadata",
                "description":"Send a request to this endpoint to sync P6/Unifier Metadata with Primavera Data Service. This is an asynchronous job and it will return a endpoint details to track the status of the job.",
                "operationId":"/v2/dataservice/metadata/refresh_refreshConfig_1",
                "parameters":[
                    {
                        "name":"configCode",
                        "in":"query",
                        "description":"The configuration name.",
                        "required":true,
                        "schema":{
                            "type":"string",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ],
                            "enum":[
                                "ds_p6adminuser",
                                "ds_p6reportuser",
                                "ds_unifier"
                            ]
                        }
                    }
                ],
                "responses":{
                    "202":{
                        "description":"Accepted"
                    },
                    "400":{
                        "description":"Bad Request"
                    },
                    "500":{
                        "description":"Internal Server Error"
                    },
                    "200":{
                        "description":"The response contains URL of endpoint to view metadata seed status.",
                        "content":{
                            "application/json":{
                                "exampleSetFlag":false
                            }
                        }
                    }
                },
                "x-internal-id":"v2-dataservice-metadata-refresh-post",
                "x-filename-id":"v2-dataservice-metadata-refresh-post"
            }
        },
        "/v1/config/status/seed":{
            "get":{
                "tags":[
                    "PrimaveraDataService"
                ],
                "summary":"View Metadata seed status of configuration",
                "description":"Send a request to endpoint to know the seed status of confiuration. The endpoint return the seed status of configuration.",
                "operationId":"/v1/config/status/seed_checkSeedStatus",
                "parameters":[
                    {
                        "name":"configCode",
                        "in":"query",
                        "description":"The configuration name.",
                        "required":true,
                        "schema":{
                            "type":"string",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ],
                            "enum":[
                                "ds_p6adminuser",
                                "ds_p6reportuser",
                                "ds_unifier"
                            ]
                        }
                    }
                ],
                "responses":{
                    "200":{
                        "description":"The response contains IN PROGRESS / SUCCESS / FAILED status.",
                        "content":{
                            "text/plain":{
                                "exampleSetFlag":false
                            }
                        }
                    },
                    "202":{
                        "description":"Accepted"
                    }
                },
                "x-internal-id":"v1-config-status-seed-get",
                "x-filename-id":"v1-config-status-seed-get"
            }
        },
        "/v2/config/status/seed":{
            "get":{
                "tags":[
                    "PrimaveraDataService"
                ],
                "summary":"View Metadata seed status of configuration",
                "description":"Send a request to endpoint to know the seed status of confiuration. The endpoint return the seed status of configuration.",
                "operationId":"/v2/config/status/seed_checkSeedStatus_1",
                "parameters":[
                    {
                        "name":"configCode",
                        "in":"query",
                        "description":"The configuration name.",
                        "required":true,
                        "schema":{
                            "type":"string",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ],
                            "enum":[
                                "ds_p6adminuser",
                                "ds_p6reportuser",
                                "ds_unifier"
                            ]
                        }
                    }
                ],
                "responses":{
                    "200":{
                        "description":"The response contains IN PROGRESS / SUCCESS / FAILED status.",
                        "content":{
                            "text/plain":{
                                "exampleSetFlag":false
                            }
                        }
                    },
                    "202":{
                        "description":"Accepted"
                    }
                },
                "x-internal-id":"v2-config-status-seed-get",
                "x-filename-id":"v2-config-status-seed-get"
            }
        }
    },
    "components":{
        "schemas":{
            "JobDetailsRO":{
                "title":"JobDetailsRO",
                "type":"object",
                "properties":{
                    "jobId":{
                        "type":"string",
                        "description":"The unique identifier for the background service.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "jobType":{
                        "type":"string",
                        "description":"Scheduled job type",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ],
                        "enum":[
                            "EXPORT_DATA",
                            "EXPORT_DATA"
                        ]
                    },
                    "jobStatus":{
                        "type":"string",
                        "description":"Scheduled job status",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ],
                        "enum":[
                            "NEW",
                            "QUEUED",
                            "RUNNING",
                            "DELEGATED",
                            "ON_HOLD",
                            "REJECTED",
                            "COMPLETED",
                            "COMPLETED_WITH_ERRORS",
                            "FAILED",
                            "NOOP",
                            "COMPLETED_WITH_WARNINGS",
                            "RETRIED"
                        ]
                    },
                    "jobLog":{
                        "type":"string",
                        "description":"Log of the job. This will retrun if job is failed",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "startDate":{
                        "type":"string",
                        "description":"The date and time the job was started",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "endDate":{
                        "type":"string",
                        "description":"The date and time the job was completed",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "jobDataExpireTime":{
                        "type":"string",
                        "description":"The last date and time the job details to be available",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    }
                },
                "exampleSetFlag":false
            },
            "JobFilterRO":{
                "title":"JobFilterRO",
                "type":"object",
                "properties":{
                    "jobIds":{
                        "type":"array",
                        "description":"List of scheduled job ids",
                        "exampleSetFlag":false,
                        "items":{
                            "type":"string",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ]
                        },
                        "types":[
                            "array"
                        ]
                    },
                    "jobType":{
                        "type":"string",
                        "description":"Scheduled job type",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ],
                        "enum":[
                            "EXPORT_DATA"
                        ]
                    },
                    "jobStatus":{
                        "type":"string",
                        "description":"Scheduled job status",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ],
                        "enum":[
                            "NEW",
                            "QUEUED",
                            "RUNNING",
                            "DELEGATED",
                            "ON_HOLD",
                            "REJECTED",
                            "COMPLETED",
                            "COMPLETED_WITH_ERRORS",
                            "FAILED",
                            "NOOP",
                            "COMPLETED_WITH_WARNINGS",
                            "RETRIED"
                        ]
                    }
                },
                "description":"Filter condition entity.",
                "exampleSetFlag":false
            },
            "DataObject":{
                "title":"DataObject",
                "type":"object",
                "properties":{
                    "data":{
                        "type":"object",
                        "description":"The query response which contains pagination and sinceDate details.This will exists in response only if the mode is SYNC.",
                        "exampleSetFlag":false,
                        "types":[
                            "object"
                        ],
                        "jsonSchema":{
                            "type":"object",
                            "description":"The query response which contains pagination and sinceDate details.This will exists in response only if the mode is SYNC."
                        }
                    },
                    "jobId":{
                        "type":"string",
                        "description":"The unique identifier for the background service. This will exists in response only if the mode is either ASYNC or BLOB_COLUMNS.",
                        "format":"uuid",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    }
                },
                "description":"The response entity.",
                "exampleSetFlag":false
            },
            "Condition":{
                "title":"Condition",
                "type":"object",
                "properties":{
                    "columnName":{
                        "type":"string",
                        "description":"The column name. This property is ignored when the operator is AND/OR.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "operator":{
                        "type":"string",
                        "description":"The condition operator.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ],
                        "enum":[
                            "AND",
                            "OR",
                            "IS_NULL",
                            "IS_NOT_NULL",
                            "EQUALS",
                            "NOT_EQUALS",
                            "GREATER_THAN",
                            "LESS_THAN",
                            "GREATER_THAN_OR_EQUALS",
                            "LESS_THAN_OR_EQUALS",
                            "BETWEEN"
                        ]
                    },
                    "value1":{
                        "type":"string",
                        "description":"The first value of the criteria. When the operator is AND/OR/IS_NULL/IS_NOT_NULL, this property is ignored.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "value2":{
                        "type":"string",
                        "description":"The second value of the criteria. This property is used only when the operator is BETWEEN.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "conditions":{
                        "type":"array",
                        "description":"List of Conditions if the operator is AND/OR.",
                        "exampleSetFlag":false,
                        "items":{
                            "$ref":"#/components/schemas/Condition",
                            "exampleSetFlag":false
                        },
                        "types":[
                            "array"
                        ]
                    },
                    "joinConditions":{
                        "type":"array",
                        "description":"List of Join Conditions with operator AND for an inner table",
                        "exampleSetFlag":false,
                        "items":{
                            "$ref":"#/components/schemas/Condition",
                            "exampleSetFlag":false
                        },
                        "types":[
                            "array"
                        ]
                    },
                    "sqlFunction":{
                        "type":"string",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "columnName1":{
                        "type":"string",
                        "description":"The column name. This property is ignored when the operator is AND/OR.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "columnName2":{
                        "type":"string",
                        "description":"The column name from joined table. right column. This property is ignored for normal condition",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    }
                },
                "description":"The criteria of the query",
                "exampleSetFlag":false
            },
            "QueryObject":{
                "title":"QueryObject",
                "required":[
                    "tables"
                ],
                "type":"object",
                "properties":{
                    "name":{
                        "type":"string",
                        "description":"Query identifier.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "sinceDate":{
                        "type":"string",
                        "description":"A database date that the query fetches rows created/updated after this date.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "pageSize":{
                        "type":"string",
                        "description":"Specifies how many rows should return from this query.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "nextTableName":{
                        "type":"string",
                        "description":"Table Name.This will required only for pagination with multiple tables,fetch this value from previous pagination query response. A value \"-1\" indicates no more data on server.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "nextKey":{
                        "type":"string",
                        "description":"First row number and this will required only for pagination, fetch this value from previous pagination query response. A value \"-1\" indicates no more data on server.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "sqlQueriesAndTotalRecordCount":{
                        "type":"boolean",
                        "description":"Generated sql queries and total count from request body. By default this will be disabled(false).",
                        "exampleSetFlag":false,
                        "types":[
                            "boolean"
                        ]
                    },
                    "originalDateFormat":{
                        "type":"boolean",
                        "description":"Generated sql queries and original date format from request body. By default this will be disabled(true).",
                        "exampleSetFlag":false,
                        "types":[
                            "boolean"
                        ]
                    },
                    "mode":{
                        "type":"string",
                        "description":"A type of execution",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ],
                        "enum":[
                            "SYNC",
                            "ASYNC",
                            "BLOB_COLUMNS"
                        ]
                    },
                    "tables":{
                        "type":"array",
                        "description":"A list of queries for tables.",
                        "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\"          }        ]      }    }  ]",
                        "exampleSetFlag":true,
                        "items":{
                            "$ref":"#/components/schemas/TableQuery",
                            "exampleSetFlag":false
                        },
                        "types":[
                            "array"
                        ]
                    }
                },
                "description":"The input object to fetch table data.",
                "exampleSetFlag":false
            },
            "TableQuery":{
                "title":"TableQuery",
                "required":[
                    "columns",
                    "tableName"
                ],
                "type":"object",
                "properties":{
                    "tableName":{
                        "type":"string",
                        "description":"The table name.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "columns":{
                        "type":"array",
                        "description":"A comma separated list of columns.",
                        "exampleSetFlag":false,
                        "items":{
                            "type":"string",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ]
                        },
                        "types":[
                            "array"
                        ]
                    },
                    "condition":{
                        "$ref":"#/components/schemas/Condition",
                        "exampleSetFlag":false
                    },
                    "joinedTables":{
                        "type":"array",
                        "description":"Joined tables.",
                        "exampleSetFlag":false,
                        "items":{
                            "$ref":"#/components/schemas/TableQuery",
                            "exampleSetFlag":false
                        },
                        "types":[
                            "array"
                        ]
                    },
                    "joinCondition":{
                        "$ref":"#/components/schemas/Condition",
                        "exampleSetFlag":false
                    },
                    "orderByColumns":{
                        "type":"array",
                        "description":"The order by columns on views/synonyms.",
                        "exampleSetFlag":false,
                        "items":{
                            "type":"string",
                            "exampleSetFlag":false,
                            "types":[
                                "string"
                            ]
                        },
                        "types":[
                            "array"
                        ]
                    }
                },
                "description":"A list of queries for tables.",
                "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\"          }        ]      }    }  ]",
                "exampleSetFlag":true
            },
            "MDColumnRO":{
                "title":"MDColumnRO",
                "type":"object",
                "properties":{
                    "tableName":{
                        "type":"string",
                        "description":"The database table name.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "columnName":{
                        "type":"string",
                        "description":"The column name.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "syncConfigCode":{
                        "type":"string",
                        "description":"The configuration code.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "displayName":{
                        "type":"string",
                        "description":"The display column name.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "dataType":{
                        "type":"string",
                        "description":"The data type.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "physicalDataType":{
                        "type":"string",
                        "description":"The data type.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "isPK":{
                        "type":"boolean",
                        "description":"If the column is the primary key.",
                        "exampleSetFlag":false,
                        "types":[
                            "boolean"
                        ]
                    },
                    "isFK":{
                        "type":"boolean",
                        "description":"If the column is the foreign key.",
                        "exampleSetFlag":false,
                        "types":[
                            "boolean"
                        ]
                    },
                    "fkTableName":{
                        "type":"string",
                        "description":"The foreign key table name if it is a foreign key column.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "tableType":{
                        "type":"string",
                        "description":"The table type.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ],
                        "enum":[
                            "STANDARD",
                            "VIEW",
                            "SYNONYM"
                        ]
                    }
                },
                "description":"The column properties of a table.",
                "exampleSetFlag":false
            },
            "MDTableRO":{
                "title":"MDTableRO",
                "type":"object",
                "properties":{
                    "syncConfigCode":{
                        "type":"string",
                        "description":"The sync config id.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "physicalTableName":{
                        "type":"string",
                        "description":"The actual table name in the database.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "displayTableName":{
                        "type":"string",
                        "description":"The display table name in the database.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "tableType":{
                        "type":"string",
                        "description":"The table type.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ],
                        "enum":[
                            "STANDARD",
                            "VIEW",
                            "SYNONYM"
                        ]
                    },
                    "serviceCode":{
                        "type":"string",
                        "description":"The service name that the table.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    },
                    "isBlackListed":{
                        "type":"string",
                        "description":"Is the table blacklisted.",
                        "exampleSetFlag":false,
                        "types":[
                            "string"
                        ]
                    }
                },
                "description":"The table properties in metadata.",
                "exampleSetFlag":false
            }
        }
    }
}