Save a report layout
post
https://api.flactrum.com/v1/report-views
| Required scope | reports.write |
| Success status | 201 |
| Returns | One ReportView object |
Request body
| Field | Type | Description |
|---|---|---|
| name * | string | — |
| config * | object | A reports/run body. It is validated the same way. |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | — |
| name | string | — |
| config | object | The same body reports/run takes: dimensions, metrics, range, from, to, region, branches, channels, sort, direction. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X POST 'https://api.flactrum.com/v1/report-views' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"name": "Şube cirosu",
"config": {
"dimensions": [
"branch"
],
"metrics": [
"orders",
"revenue"
],
"range": "last_30"
}
}'
HTTP 201 · application/json
{
"data": {
"id": "01m43sqb93zbg0srkx3c1cx1pn",
"name": "Şube cirosu",
"config": {
"range": "last_30",
"metrics": [
"orders",
"revenue"
],
"dimensions": [
"branch"
]
},
"created_at": "2026-10-04T15:50:05+00:00",
"updated_at": "2026-10-04T15:50:05+00:00"
}
}