code: public Request<Factor> updateFactor(String name, Boolean enabled) {
          Asserts.assertNotNull(name, "name");
          Asserts.assertNotNull(enabled, "enabled");
  
          String url = baseUrl
                  .newBuilder()
                  .addPathSegments("api/v2/guardian/factors")
                  .addPathSegment(name)
                  .build()
                  .toString();
          CustomRequest<Factor> request = new CustomRequest<>(client, url, "PUT", new TypeReference<Factor>() {
          });
          request.addHeader("Authorization", "Bearer " + apiToken);
          request.addParameter("enabled", enabled);
          return request;
      }
docs: Update an existing Guardian Factor. A token with scope update:guardian_factors is needed.
  
  @param name    the name of the Factor to update.
  @param enabled whether to enable or disable the Factor.
  @return a Request to execute.
  @see <a href="https://auth0.com/docs/api/management/v2#!/Guardian/put_factors_by_name">Management API2 docs</a>