Overview / Finance / Update a layout

Update a layout

patch https://api.flactrum.com/v1/report-views/{view}
Required scope reports.write
Success status200
Returns One ReportView object

Parameters

NameInTypeDescription
view * path string ULID of the record.

Request body

FieldTypeDescription
name * string —
config * object A reports/run body. It is validated the same way.

Response fields

FieldTypeDescription
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 PATCH 'https://api.flactrum.com/v1/report-views/01m43sqb93zbg0srkx3c1cx1pn' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Aylık şube cirosu"
}'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43sqb93zbg0srkx3c1cx1pn",
        "name": "Aylık ş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"
    }
}