copyDashboard method

Future<Dashboard> copyDashboard({
  1. required String id,
  2. required DashboardDetails body,
})

Copies a dashboard. Any values provided in the dashboard parameter replace those in the copied dashboard.

Permissions required: None

The dashboard to be copied must be owned by or shared with the user.

Implementation

Future<Dashboard> copyDashboard(
    {required String id, required DashboardDetails body}) async {
  return Dashboard.fromJson(await _client.send(
    'post',
    'rest/api/3/dashboard/{id}/copy',
    pathParameters: {
      'id': id,
    },
    body: body.toJson(),
  ));
}