Create Custom Report
POST/api/v2/custom-reports
Create a new saved custom report.
Required fields:
name(string, max 255): Report namedomain(string, max 50): Domain category (e.g., sales, inventory)base_entity(string, max 100): Primary entity for the reportdefinition(object): Full report definition containing columns, filters, sorts, etc.
Optional fields:
description(string, max 1000): Report descriptionvisibility(string): "private" (default) or "shared"definition.version(integer): Schema version numberdefinition.domain(string): Domain within the definitiondefinition.filters(object): Filter tree with conjunction and childrendefinition.sorts(array): Sort rulesdefinition.limit(integer, 1-5000): Default row limit
Column requirements:
id(string, required): Unique column identifier (e.g., "entity.field")kind(string, required): "dimension" or "measure"entity(string, required): Entity the column belongs tofield(string, required): Field name on the entitylabel(string, optional): Display labelgranularity(string, optional): Time granularity for date dimensions (e.g., day, month, year)aggregation(string, optional): Aggregation function for measures (e.g., sum, count, avg)
Returns 201 with the created CustomReportResource.
Request
Responses
- 200
Successful response