Widgets

Duplicate Widget

Changed on

Duplicate a widget ('Copy of <name>') with its metrics onto a dashboard, which may be a different one from the source's.

post/v1/widgets/{widget_id}/duplicate

Request

  • Base URL
    https://api.getbluejay.ai
  • URL
    https://api.getbluejay.ai/v1/widgets/{widget_id}/duplicate
  • Auth
    HTTPBearer (a scheme the document does not define)

Path parameters

widget_idstring required

Headers

X-Organization-Idstring
X-API-Keystring required

API key required to authenticate requests.

Request body

dashboard_idstring required

Dashboard the copy belongs to

Response

Successful Response

idstring required
organization_idstring nullable
namestring required
descriptionstring nullable
chart_typestring required
chart_modestring nullable
data_typestring required
applies_to_all_agentsboolean
bar_modestring nullable
aggregationstring[] nullable
time_bucketstring nullable
group_bystring nullable
simulation_idsinteger[] nullable
show_indeterminateboolean nullable
filtersunknown
column_visibilityunknown
color_overridesobject nullable

The colour the chart draws each series or slice in, keyed by its label lowercased. Written whole when a widget is saved, so it names every label rather than only the ones a person changed.

show_legendboolean

Whether the chart draws its colour key

created_bystring nullable
created_atstring nullable
updated_atstring nullable

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • breaking

      the request property became required

    • breaking

      request property list-of-types was narrowed by removing types null from media type application/json

    • breaking

      the request property's minLength was increased from 0 to 1