Skip to main content
POST
Create a report

Request Structure

Key Fields

source_path

The source_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 results
  • data.{resource}.all.edges — for paginated lists (each item under node)
  • For paginated queries, report_fields paths must start with node. (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

Authorization
string
header
required

OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.

X-Clarus-Subdomain
string
header
required

The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.

Body

application/json
data
object
required

Response

Report created successfully

data
object