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
Response
200 - application/json
Create saved query
The response is of type object
.
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"
}
Assistant
Responses are generated using AI and may contain mistakes.