Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of the team
Body
Create a dataset with all its data requests in one API call
ID of the team
Array of project IDs where members can access the dataset
Whether the dataset is a draft and should be hidden from dashboard viewers
X axis or metric field using traversal syntax - root[].field
Y axis field using traversal syntax
Operation to perform on the y-axis - none, sum, avg, min, max, count
none, count, count_unique, sum, avg, min, max Date field using traversal syntax. Specifies which field should be used for date filtering.
Date format to use for date filtering. e.g YYYY-MM-DD
Legend label (name) of the dataset
Conditions to apply to the dataset - used for filtering
Schema of the fields in the dataset key(field name) => value(type). This gets populated automatically whenever the dataset is used in a chart.
Join settings for the dataset. Use indices (0-based) in joins array to reference data requests before they are created.
Array of data requests to create with the dataset
Index (0-based) of the main data request in the dataRequests array. Defaults to 0.
Variable bindings for the dataset. The entity_type and entity_id will be automatically set.
Response
Created dataset with all data requests