Create a report query
Report Queries
Create a report query
Create a new report query definition. Report queries allow you to save GraphQL queries for repeated execution.
POST
Create a report query
Request Structure
Key Fields
| Field | Required | Description |
|---|---|---|
name | Yes | Report name for identification |
description | No | Description of what the report shows |
graphql | Yes | Named GraphQL query with typed parameters (never anonymous) |
parameters | No | Array of parameter definitions matching query variables |
GraphQL Query Rules
- Must be a named query (e.g.,
query getTasksToDo(...)) — never anonymous - Use
$variablesyntax for parameters with GraphQL types (ID,Chronic,String) - Common query patterns:
aggregation(...)for grouped/summarized data,all(...) { edges { node { ... } } }for paginated lists
Parameter Types
| Type | GraphQL Type | Description |
|---|---|---|
Integer | ID | Integer ID value |
Date | Chronic | Date/time parsed with natural language (e.g., ‘start of today’) |
String | String | Text value |
Authorizations
OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.
The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.
Body
application/json
Response
Report query created successfully

