code: public ServiceCall<Expansions> createExpansions(CreateExpansionsOptions createExpansionsOptions) {
      Validator.notNull(createExpansionsOptions, "createExpansionsOptions cannot be null");
      String[] pathSegments = { "v1/environments", "collections", "expansions" };
      String[] pathParameters = { createExpansionsOptions.environmentId(), createExpansionsOptions.collectionId() };
      RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments,
          pathParameters));
      builder.query("version", versionDate);
      Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("discovery", "v1", "createExpansions");
      for (Entry<String, String> header : sdkHeaders.entrySet()) {
        builder.header(header.getKey(), header.getValue());
      }
      builder.header("Accept", "application/json");
      final JsonObject contentJson = new JsonObject();
      contentJson.add("expansions", GsonSingleton.getGson().toJsonTree(createExpansionsOptions.expansions()));
      builder.bodyJson(contentJson);
      return createServiceCall(builder.build(), ResponseConverterUtils.getObject(Expansions.class));
    }
docs: Create or update expansion list.
  
  Create or replace the Expansion list for this collection. The maximum number of expanded terms per collection is
  `500`.
  The current expansion list is replaced with the uploaded content.
  
  @param createExpansionsOptions the {@link CreateExpansionsOptions} containing the options for the call
  @return a {@link ServiceCall} with a response type of {@link Expansions}