Create a report
Reports
Create a report
Create a new report definition based on an existing report query. Reports define how query results are formatted and what variables are used.
POST
Create a report
Request Structure
Key Fields
| Field | Required | Description |
|---|---|---|
name | Yes | Report name (max 50 chars) |
report_type | Yes | Output type: single (table), bar (bar chart), pie (pie chart) |
report_query_id | Yes | ID of the report query to use |
source_path | No | Dot-notation path to data in GraphQL response. Must start with data. (e.g., data.tasks.aggregation, data.stocks.all.edges) |
description | No | Report description (max 500 chars) |
report_fields | No | Array of field definitions for the report output |
variables | No | Array of variable values to pass to the report query |
source_path
Thesource_path tells the system where to find data in the GraphQL response. It always starts with data. Common patterns:
data.{resource}.aggregation— for grouped/summarized resultsdata.{resource}.all.edges— for paginated lists (each item undernode)- For paginated queries,
report_fieldspaths must start withnode.(e.g.,node.warehouse.name)
Variables
Variables support Chronic-style date values (e.g.,start of today, end of today, start of this month) which are parsed at report generation time. Variable names must match parameters defined in the linked report query.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 created successfully

