Skip to main content
POST
Create a widget

Authorizations

X-BRONTO-API-KEY
string
header
required

Body

application/json
name
string
required

The widget name

Required string length: 1 - 255
Example:

"5xx errors by service"

type
string
required

The widget type

Required string length: 1 - 64
Example:

"treemap"

description
string

The widget description

Required string length: 1 - 1024
Example:

"This widget shows the 5xx errors by service"

aux
object

Additional widget configuration

sources
object[]

The metrics, monitors and SLOs that supply data to the widget, in display order. Used by every widget type except group. Cannot be combined with metric_ids or widget_ids.

Maximum array length: 20
Example:
metric_ids
string<uuid>[]
deprecated

Deprecated on 2026-10-12 and will be removed on 2027-10-12: use sources with type: metric. Requests using this field receive Deprecation and Sunset response headers. Each ID is stored as {type: metric, id}. Cannot be combined with sources or widget_ids.

Maximum array length: 20
widget_ids
string<uuid>[]

The child widget IDs of a group widget. Required for group widgets and must be omitted for all other widget types. Cannot be combined with sources or metric_ids.

Maximum array length: 50

Response

Widget created successfully

A widget. A group widget contains other widgets (widget_ids, positioned by layout); every other widget type gets its data from sources. A widget never has both sources and widget_ids.

id
string<uuid>
required
name
string
required

The name of the Widget.

Example:

"5xx errors by service"

type
enum<string>
required

The type of the Widget.

Available options:
area,
bar,
donut,
events-list,
geomap,
group,
line,
pie,
score,
table,
top-list,
treemap
sources
object[]
required

The metrics, monitors and SLOs that supply data to the widget, in display order. Empty for group widgets.

Example:
aux
object
required

Additional widget configuration

description
string

A description of the widget

Example:

"This widget shows the 5xx errors by service"

metric_ids
string<uuid>[]
deprecated

Deprecated on 2026-10-12 and will be removed on 2027-10-12: use sources. Contains only the IDs of sources entries whose type is metric.

widget_ids
string<uuid>[]

The child widget IDs of a group widget. Empty for all other widget types.

metric_labels
object

Display labels for the widget's metrics, keyed by metric ID

layout
object

The positions of the child widgets of a group widget, keyed by child widget ID. widget_layouts is empty for all other widget types.

Example:
tags
object

A map of key value pairs associated with the resource

Example:
template
object
metadata
object

Common metadata attached to all persisted resources.