removeGadget method

Future removeGadget({
  1. required int dashboardId,
  2. required int gadgetId,
})

Removes a dashboard gadget from a dashboard.

When a gadget is removed from a dashboard, other gadgets in the same column are moved up to fill the emptied position.

Permissions required: None.

Implementation

Future<dynamic> removeGadget(
    {required int dashboardId, required int gadgetId}) async {
  return await _client.send(
    'delete',
    'rest/api/3/dashboard/{dashboardId}/gadget/{gadgetId}',
    pathParameters: {
      'dashboardId': '$dashboardId',
      'gadgetId': '$gadgetId',
    },
  );
}