← All types
Apps & SurfacesIn Input object

UpsertDashboardCardInput

Input for creating or updating a dashboard card

Fields

ID for update; omit for create

Parent dashboard ID (required)

title

String!Required

Card title (required)

Card type (required)

Possible values (8)
CUSTOM_APP

Embeds a custom app

RESOURCE_TABLE

Displays a lightweight table of recent records

MARKDOWN

Displays rich text / markdown content

METRIC

Displays a single metric value with optional query

METRIC_CHART

Time-bucketed line/bar chart powered by aggregateMetricPoints

METRIC_HISTOGRAM

Value distribution histogram powered by metricHistogram

METRIC_GAUGE

Current value gauge with trend projection powered by metricProjection

METRIC_COMPARISON

Multi-metric overlay chart powered by compareMetrics

config

JSON!Required

Card-type-specific configuration JSON

Grid position (defaults to 0,0,4,3)

sortOrder

IntOptional

Sort order (defaults to 0)

Referenced by (1)
Exact type SDL
"""Input for creating or updating a dashboard card"""
input UpsertDashboardCardInput {
  """ID for update; omit for create"""
  id: DashboardCardID
  """Parent dashboard ID (required)"""
  dashboardId: DashboardID!
  """Card title (required)"""
  title: String!
  """Card type (required)"""
  cardType: DashboardCardType!
  """Card-type-specific configuration JSON"""
  config: JSON!
  """Grid position (defaults to 0,0,4,3)"""
  position: DashboardCardPositionInput
  """Sort order (defaults to 0)"""
  sortOrder: Int
}