code: public Optional<Dashboard> update(Dashboard dashboard)
      {
          return HTTP.PUT(String.format("/v2/dashboards/%d.json", dashboard.getId()), dashboard, DASHBOARD);
      }
docs: Updates the given dashboard.
  @param dashboard The dashboard to update
  @return The dashboard that was updated