Skip to main content
POST
/
accounts
/
api
/
dashboard
/
views
/
from-preset
Build a dashboard from a measure list (preset)
curl --request POST \
  --url https://api2.upstackified.com/accounts/api/dashboard/views/from-preset \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-pixel-id: <api-key>' \
  --data '
{
  "name": "NC + Meta Pulse",
  "widgets": [
    {
      "measure": "core.new_customer_roas",
      "title": "NC ROAS"
    },
    {
      "measure": "core.new_customer_mer",
      "title": "NC MER"
    },
    {
      "measure": "meta.cpm",
      "title": "Meta CPM"
    }
  ]
}
'
{
  "dashboardView": {
    "id": "<string>",
    "pixelId": "<string>",
    "type": "view",
    "name": "<string>",
    "configuration": {
      "attributionModel": "first_click",
      "attributionWindow": 123,
      "granularity": "none",
      "dateRange": {
        "start": "2026-04-01",
        "end": "2026-04-30"
      },
      "grid": {
        "maxWidth": 1200
      },
      "widgets": [
        {
          "id": "<string>",
          "title": "<string>",
          "chartType": "bar",
          "layout": {
            "x": 5,
            "y": 1,
            "rows": 2,
            "columns": 6,
            "minColumns": 2,
            "maxColumns": 11,
            "minRows": 2,
            "maxRows": 123,
            "static": true
          },
          "dataConfig": {
            "measures": [
              "<string>"
            ],
            "dimensions": [
              "<string>"
            ],
            "filters": [
              {}
            ]
          }
        }
      ],
      "filters": {},
      "viewFilters": [
        {}
      ]
    },
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "updatedBy": "<string>",
    "order": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Your Upstack API key. Starts with upstack_.

x-pixel-id
string
header
required

The pixel id the request targets.

Body

application/json
name
string
required
Required string length: 1 - 200
widgets
object[]
required
Minimum array length: 1
type
enum<string>

Defaults to view.

Available options:
view,
attribution_view,
pnl_view
layout
enum<string>

Auto-layout strategy. Default kpi-grid.

Available options:
kpi-grid
attribution
object
granularity
enum<string>
Available options:
none,
second,
minute,
hour,
day,
week,
month,
quarter,
year
dateRange
object

Defaults to the last 30 days.

Response

The created view.

dashboardView
object
required