@@ -31,6 +31,7 @@ All URIs are relative to *http://localhost*
3131| [ ** patchDomainConfig** ] ( DefaultApi.md#patchDomainConfig ) | ** PATCH** /api/v1/domain-configs/{domainToUpdate} | |
3232| [ ** putDomainConfig** ] ( DefaultApi.md#putDomainConfig ) | ** PUT** /api/v1/domain-configs/{domainToUpdate} | |
3333| [ ** saveComment** ] ( DefaultApi.md#saveComment ) | ** POST** /api/v1/comments | |
34+ | [ ** saveCommentsBulk** ] ( DefaultApi.md#saveCommentsBulk ) | ** POST** /api/v1/comments/bulk | |
3435| [ ** unBlockUserFromComment** ] ( DefaultApi.md#unBlockUserFromComment ) | ** POST** /api/v1/comments/{id}/un-block | |
3536| [ ** unFlagComment** ] ( DefaultApi.md#unFlagComment ) | ** POST** /api/v1/comments/{id}/un-flag | |
3637| [ ** updateComment** ] ( DefaultApi.md#updateComment ) | ** PATCH** /api/v1/comments/{id} | |
@@ -2038,6 +2039,88 @@ public class Example {
20382039| -------------| -------------| ------------------|
20392040| ** 200** | Ok | - |
20402041
2042+ <a id =" saveCommentsBulk " ></a >
2043+ # ** saveCommentsBulk**
2044+ > List< ; SaveComment200Response> ; saveCommentsBulk(tenantId, createCommentParams).isLive(isLive).doSpamCheck(doSpamCheck).sendEmails(sendEmails).populateNotifications(populateNotifications).execute();
2045+
2046+
2047+
2048+ ### Example
2049+ ``` java
2050+ // Import classes:
2051+ import com.fastcomments.invoker.ApiClient ;
2052+ import com.fastcomments.invoker.ApiException ;
2053+ import com.fastcomments.invoker.Configuration ;
2054+ import com.fastcomments.invoker.auth.* ;
2055+ import com.fastcomments.invoker.models.* ;
2056+ import com.fastcomments.api.DefaultApi ;
2057+
2058+ public class Example {
2059+ public static void main (String [] args ) {
2060+ ApiClient defaultClient = Configuration . getDefaultApiClient();
2061+ defaultClient. setBasePath(" http://localhost" );
2062+
2063+ // Configure API key authorization: api_key
2064+ ApiKeyAuth api_key = (ApiKeyAuth ) defaultClient. getAuthentication(" api_key" );
2065+ api_key. setApiKey(" YOUR API KEY" );
2066+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
2067+ // api_key.setApiKeyPrefix("Token");
2068+
2069+ DefaultApi apiInstance = new DefaultApi (defaultClient);
2070+ String tenantId = " tenantId_example" ; // String |
2071+ List<CreateCommentParams > createCommentParams = Arrays . asList(); // List<CreateCommentParams> |
2072+ Boolean isLive = true ; // Boolean |
2073+ Boolean doSpamCheck = true ; // Boolean |
2074+ Boolean sendEmails = true ; // Boolean |
2075+ Boolean populateNotifications = true ; // Boolean |
2076+ try {
2077+ List<SaveComment200Response > result = apiInstance. saveCommentsBulk(tenantId, createCommentParams)
2078+ .isLive(isLive)
2079+ .doSpamCheck(doSpamCheck)
2080+ .sendEmails(sendEmails)
2081+ .populateNotifications(populateNotifications)
2082+ .execute();
2083+ System . out. println(result);
2084+ } catch (ApiException e) {
2085+ System . err. println(" Exception when calling DefaultApi#saveCommentsBulk" );
2086+ System . err. println(" Status code: " + e. getCode());
2087+ System . err. println(" Reason: " + e. getResponseBody());
2088+ System . err. println(" Response headers: " + e. getResponseHeaders());
2089+ e. printStackTrace();
2090+ }
2091+ }
2092+ }
2093+ ```
2094+
2095+ ### Parameters
2096+
2097+ | Name | Type | Description | Notes |
2098+ | ------------- | ------------- | ------------- | -------------|
2099+ | ** tenantId** | ** String** | | |
2100+ | ** createCommentParams** | [ ** List< ; CreateCommentParams> ; ** ] ( CreateCommentParams.md ) | | |
2101+ | ** isLive** | ** Boolean** | | [ optional] |
2102+ | ** doSpamCheck** | ** Boolean** | | [ optional] |
2103+ | ** sendEmails** | ** Boolean** | | [ optional] |
2104+ | ** populateNotifications** | ** Boolean** | | [ optional] |
2105+
2106+ ### Return type
2107+
2108+ [ ** List< ; SaveComment200Response> ; ** ] ( SaveComment200Response.md )
2109+
2110+ ### Authorization
2111+
2112+ [ api_key] ( ../README.md#api_key )
2113+
2114+ ### HTTP request headers
2115+
2116+ - ** Content-Type** : application/json
2117+ - ** Accept** : application/json
2118+
2119+ ### HTTP response details
2120+ | Status code | Description | Response headers |
2121+ | -------------| -------------| ------------------|
2122+ | ** 200** | Ok | - |
2123+
20412124<a id =" unBlockUserFromComment " ></a >
20422125# ** unBlockUserFromComment**
20432126> UnBlockCommentPublic200Response unBlockUserFromComment(tenantId, id, unBlockFromCommentParams).userId(userId).anonUserId(anonUserId).execute();
0 commit comments