@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
55| Method | HTTP request | Description |
66| ------------- | ------------- | -------------|
77| [ ** addDocument** ] ( DocumentsApi.md#addDocument ) | ** POST** /documents | Add new document |
8+ | [ ** addDocumentSync** ] ( DocumentsApi.md#addDocumentSync ) | ** POST** /documents/{documentId}/syncs | Add document sync to service |
89| [ ** addDocumentUpload** ] ( DocumentsApi.md#addDocumentUpload ) | ** POST** /documents/upload | Add large document |
910| [ ** compressDocuments** ] ( DocumentsApi.md#compressDocuments ) | ** POST** /documents/compress | Compress multiple documents into a .zip file |
1011| [ ** deleteDocument** ] ( DocumentsApi.md#deleteDocument ) | ** DELETE** /documents/{documentId} | Delete document |
@@ -92,6 +93,75 @@ No authorization required
9293| ** 201** | 201 CREATED | * Access-Control-Allow-Origin - <br > * Access-Control-Allow-Methods - <br > * Access-Control-Allow-Headers - <br > |
9394| ** 400** | 400 OK | - |
9495
96+ <a id =" addDocumentSync " ></a >
97+ # ** addDocumentSync**
98+ > AddResponse addDocumentSync(documentId, siteId, addDocumentSyncRequest)
99+
100+ Add document sync to service
101+
102+ Add a document to a service
103+
104+ ### Example
105+ ``` java
106+ // Import classes:
107+ import com.formkiq.client.invoker.ApiClient ;
108+ import com.formkiq.client.invoker.ApiException ;
109+ import com.formkiq.client.invoker.Configuration ;
110+ import com.formkiq.client.invoker.auth.* ;
111+ import com.formkiq.client.invoker.models.* ;
112+ import com.formkiq.client.api.DocumentsApi ;
113+
114+ public class Example {
115+ public static void main (String [] args ) {
116+ ApiClient defaultClient = Configuration . getDefaultApiClient();
117+ defaultClient. setBasePath(" http://localhost" );
118+ // Configure AWS Signature V4 authorization
119+ defaultClient. setAWS4Configuration(" YOUR_ACCESS_KEY" , " YOUR_SECRET_KEY" , " REGION" , " SERVICE" )
120+
121+ DocumentsApi apiInstance = new DocumentsApi (defaultClient);
122+ String documentId = " documentId_example" ; // String | Document Identifier
123+ String siteId = " siteId_example" ; // String | Site Identifier
124+ AddDocumentSyncRequest addDocumentSyncRequest = new AddDocumentSyncRequest (); // AddDocumentSyncRequest |
125+ try {
126+ AddResponse result = apiInstance. addDocumentSync(documentId, siteId, addDocumentSyncRequest);
127+ System . out. println(result);
128+ } catch (ApiException e) {
129+ System . err. println(" Exception when calling DocumentsApi#addDocumentSync" );
130+ System . err. println(" Status code: " + e. getCode());
131+ System . err. println(" Reason: " + e. getResponseBody());
132+ System . err. println(" Response headers: " + e. getResponseHeaders());
133+ e. printStackTrace();
134+ }
135+ }
136+ }
137+ ```
138+
139+ ### Parameters
140+
141+ | Name | Type | Description | Notes |
142+ | ------------- | ------------- | ------------- | -------------|
143+ | ** documentId** | ** String** | Document Identifier | |
144+ | ** siteId** | ** String** | Site Identifier | [ optional] |
145+ | ** addDocumentSyncRequest** | [ ** AddDocumentSyncRequest** ] ( AddDocumentSyncRequest.md ) | | [ optional] |
146+
147+ ### Return type
148+
149+ [ ** AddResponse** ] ( AddResponse.md )
150+
151+ ### Authorization
152+
153+ No authorization required
154+
155+ ### HTTP request headers
156+
157+ - ** Content-Type** : application/json
158+ - ** Accept** : application/json
159+
160+ ### HTTP response details
161+ | Status code | Description | Response headers |
162+ | -------------| -------------| ------------------|
163+ | ** 200** | 200 OK | * Access-Control-Allow-Origin - <br > * Access-Control-Allow-Methods - <br > * Access-Control-Allow-Headers - <br > |
164+
95165<a id =" addDocumentUpload " ></a >
96166# ** addDocumentUpload**
97167> GetDocumentUrlResponse addDocumentUpload(addDocumentUploadRequest, siteId, contentLength, duration, shareKey)
0 commit comments