Reports
Save report
Reports
Save report
Create saved query
POST
/
saved-queries
curl --request POST \
--url https://app.delphihq.com/api/saved-queries \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-CLIENT-ID: <api-key>' \
--data '{
"folderId": "<string>",
"savedQuery": {
"id": "<string>",
"title": "<string>",
"description": "<string>",
"connectionType": "cube",
"chartType": "area",
"dimensions": [
"<string>"
],
"metrics": [
"<string>"
],
"dateRange": {
"from": "<string>",
"to": "<string>",
"selectValue": "<string>"
},
"dateFilterField": "<string>",
"index": "<string>",
"pivot": "<string>",
"stacked": true,
"filters": [
{}
],
"limit": 123,
"orderBy": {},
"timeGranularity": "second",
"order": 123,
"width": 123,
"height": 123,
"x": 123,
"y": 123
}
}'
{
"status": "ok"
}
Body
application/json
Available options:
cube
Available options:
area
, bar
, bar_list
, donut
, line
, scatter
, table
Available options:
second
, day
, hour
, minute
, month
, quarter
, second
, week
, year
Response
200 - application/json
Create saved query
Available options:
ok
curl --request POST \
--url https://app.delphihq.com/api/saved-queries \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-CLIENT-ID: <api-key>' \
--data '{
"folderId": "<string>",
"savedQuery": {
"id": "<string>",
"title": "<string>",
"description": "<string>",
"connectionType": "cube",
"chartType": "area",
"dimensions": [
"<string>"
],
"metrics": [
"<string>"
],
"dateRange": {
"from": "<string>",
"to": "<string>",
"selectValue": "<string>"
},
"dateFilterField": "<string>",
"index": "<string>",
"pivot": "<string>",
"stacked": true,
"filters": [
{}
],
"limit": 123,
"orderBy": {},
"timeGranularity": "second",
"order": 123,
"width": 123,
"height": 123,
"x": 123,
"y": 123
}
}'
{
"status": "ok"
}