Skip to main content
POST
Step 4 — Test generated queries in the BigQuery sandbox
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

POST /source-creator/test-queries Description: Runs the session’s generated queries through a dry-run syntax check, then executes the sales-data query against sample data in the tenant’s BigQuery sandbox dataset, and validates the resulting schema. Requires the tenant to already have a BigQuery dataset configured (i.e. at least one prior royalty file processed). Rate limited via heavyOperationLimiter (BigQuery sandbox operations). Authorization:
  • Required role: admin or higher
Method: POST

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json
sessionId
string<uuid>
required

Response

Query testing completed (check data.overallValid / data.overallPass — a 200 does not imply the queries passed)

status
string
Example:

"success"

message
string
Example:

"All query tests passed"

data
object