code: public TermsDetails syncTerms(String projectId, List<Term> terms){
          String jsonTerms = new Gson().toJson(terms);
          EditTermsResponse response = service.syncTerms(Action.SYNC_TERMS, apiKey, projectId, jsonTerms);
          ApiUtils.checkResponse(response.response);
          return response.details;
      }
docs: syncs your project with the array you send (terms that are not found in the JSON object will be deleted from
  project and the new ones added).
  
  @param projectId id of the project
  @param terms list of terms
  @return TermsDetails