updateDashboard method

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

Updates a dashboard, replacing all the dashboard details with those provided.

Permissions required: None

The dashboard to be updated must be owned by the user.

Implementation

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