All URIs are relative to https://your-docspace.onlyoffice.com
| Method | HTTP request | Description |
|---|---|---|
| addFavorites | POST /api/2.0/files/favorites | Add favorite files and folders |
| bulkDownload | PUT /api/2.0/files/fileops/bulkdownload | Bulk download |
| checkConversionStatus | GET /api/2.0/files/file/{fileId}/checkconversion | Get conversion status |
| checkMoveOrCopyBatchItems | GET /api/2.0/files/fileops/move | Move or copy files to a folder |
| checkMoveOrCopyDestFolder | GET /api/2.0/files/fileops/checkdestfolder | Check for moving or copying files to a folder |
| copyBatchItems | PUT /api/2.0/files/fileops/copy | Copy to the folder |
| createUploadSession | POST /api/2.0/files/{folderId}/upload/create_session | Chunked upload |
| deleteBatchItems | PUT /api/2.0/files/fileops/delete | Delete files and folders |
| deleteFavoritesFromBody | DELETE /api/2.0/files/favorites | Delete favorite files and folders (using body parameters) |
| deleteFileVersions | PUT /api/2.0/files/fileops/deleteversion | Delete file versions |
| duplicateBatchItems | PUT /api/2.0/files/fileops/duplicate | Duplicate files and folders |
| emptyTrash | PUT /api/2.0/files/fileops/emptytrash | Empty the Trash folder |
| getOperationStatuses | GET /api/2.0/files/fileops | Get active file operations |
| getOperationStatusesByType | GET /api/2.0/files/fileops/{operationType} | Get file operation statuses |
| markAsRead | PUT /api/2.0/files/fileops/markasread | Mark as read |
| moveBatchItems | PUT /api/2.0/files/fileops/move | Move or copy to a folder |
| startFileConversion | PUT /api/2.0/files/file/{fileId}/checkconversion | Start file conversion |
| terminateTasks | PUT /api/2.0/files/fileops/terminate/{id} | Finish active operations |
| updateFileComment | PUT /api/2.0/files/file/{fileId}/comment | Update a comment |
BooleanWrapper addFavorites(baseBatchRequestDto)
Add favorite files and foldersAdds files and folders with the IDs specified in the request to the favorite list.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| baseBatchRequestDto | BaseBatchRequestDto | [optional] |
Basic, OAuth2, ApiKeyBearer, asc_auth_key, Bearer, OpenId
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: ApiKeyBearer
ApiKeyAuth ApiKeyBearer = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyBearer");
ApiKeyBearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyBearer.setApiKeyPrefix("Token");
// Configure API key authorization: asc_auth_key
ApiKeyAuth asc_auth_key = (ApiKeyAuth) defaultClient.getAuthentication("asc_auth_key");
asc_auth_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//asc_auth_key.setApiKeyPrefix("Token");
// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");
OperationsApi apiInstance = new OperationsApi(defaultClient);
BaseBatchRequestDto baseBatchRequestDto = new BaseBatchRequestDto(); // BaseBatchRequestDto |
try {
BooleanWrapper result = apiInstance.addFavorites(baseBatchRequestDto);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#addFavorites");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Boolean value: true if the operation is successful | - |
| 401 | Unauthorized | - |
| 403 | You don't have enough permission to perform the operation | - |
FileOperationArrayWrapper bulkDownload(downloadRequestDto)
Bulk downloadStarts the download process of files and folders with the IDs specified in the request.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| downloadRequestDto | DownloadRequestDto | [optional] |
No authorization required
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
OperationsApi apiInstance = new OperationsApi(defaultClient);
DownloadRequestDto downloadRequestDto = new DownloadRequestDto(); // DownloadRequestDto |
try {
FileOperationArrayWrapper result = apiInstance.bulkDownload(downloadRequestDto);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#bulkDownload");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of file operations | - |
| 403 | You don't have enough permission to download | - |
ConversationResultArrayWrapper checkConversionStatus(fileId, start)
Get conversion statusChecks the conversion status of a file with the ID specified in the request.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| fileId | Integer | The file ID to check conversion status. | |
| start | Boolean | Specifies whether a conversion operation is started or not. | [optional] |
ConversationResultArrayWrapper
Basic, OAuth2, ApiKeyBearer, asc_auth_key, Bearer, OpenId
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: ApiKeyBearer
ApiKeyAuth ApiKeyBearer = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyBearer");
ApiKeyBearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyBearer.setApiKeyPrefix("Token");
// Configure API key authorization: asc_auth_key
ApiKeyAuth asc_auth_key = (ApiKeyAuth) defaultClient.getAuthentication("asc_auth_key");
asc_auth_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//asc_auth_key.setApiKeyPrefix("Token");
// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");
OperationsApi apiInstance = new OperationsApi(defaultClient);
Integer fileId = 9846; // Integer | The file ID to check conversion status.
Boolean start = true; // Boolean | Specifies whether a conversion operation is started or not.
try {
ConversationResultArrayWrapper result = apiInstance.checkConversionStatus(fileId, start);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#checkConversionStatus");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Conversion result | - |
| 401 | Unauthorized | - |
FileEntryBaseArrayWrapper checkMoveOrCopyBatchItems(inDto)
Move or copy files to a folderChecks if files or folders can be moved or copied to the specified folder, moves or copies them, and returns their information.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| inDto | BatchRequestDto | The request parameters for copying/moving files. | [optional] |
Basic, OAuth2, ApiKeyBearer, asc_auth_key, Bearer, OpenId
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: ApiKeyBearer
ApiKeyAuth ApiKeyBearer = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyBearer");
ApiKeyBearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyBearer.setApiKeyPrefix("Token");
// Configure API key authorization: asc_auth_key
ApiKeyAuth asc_auth_key = (ApiKeyAuth) defaultClient.getAuthentication("asc_auth_key");
asc_auth_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//asc_auth_key.setApiKeyPrefix("Token");
// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");
OperationsApi apiInstance = new OperationsApi(defaultClient);
BatchRequestDto inDto = new BatchRequestDto(); // BatchRequestDto | The request parameters for copying/moving files.
try {
FileEntryBaseArrayWrapper result = apiInstance.checkMoveOrCopyBatchItems(inDto);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#checkMoveOrCopyBatchItems");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of file entry information | - |
| 401 | Unauthorized | - |
| 403 | You don't have enough permission to create | - |
CheckDestFolderWrapper checkMoveOrCopyDestFolder(inDto)
Check for moving or copying files to a folderChecks if files can be moved or copied to the specified folder.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| inDto | BatchRequestDto | The request parameters for copying/moving files. | [optional] |
Basic, OAuth2, ApiKeyBearer, asc_auth_key, Bearer, OpenId
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: ApiKeyBearer
ApiKeyAuth ApiKeyBearer = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyBearer");
ApiKeyBearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyBearer.setApiKeyPrefix("Token");
// Configure API key authorization: asc_auth_key
ApiKeyAuth asc_auth_key = (ApiKeyAuth) defaultClient.getAuthentication("asc_auth_key");
asc_auth_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//asc_auth_key.setApiKeyPrefix("Token");
// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");
OperationsApi apiInstance = new OperationsApi(defaultClient);
BatchRequestDto inDto = new BatchRequestDto(); // BatchRequestDto | The request parameters for copying/moving files.
try {
CheckDestFolderWrapper result = apiInstance.checkMoveOrCopyDestFolder(inDto);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#checkMoveOrCopyDestFolder");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Result | - |
| 401 | Unauthorized | - |
| 403 | You don't have enough permission to create | - |
FileOperationArrayWrapper copyBatchItems(batchRequestDto)
Copy to the folderCopies all the selected files and folders to the folder with the ID specified in the request.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| batchRequestDto | BatchRequestDto | [optional] |
Basic, OAuth2, ApiKeyBearer, asc_auth_key, Bearer, OpenId
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: ApiKeyBearer
ApiKeyAuth ApiKeyBearer = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyBearer");
ApiKeyBearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyBearer.setApiKeyPrefix("Token");
// Configure API key authorization: asc_auth_key
ApiKeyAuth asc_auth_key = (ApiKeyAuth) defaultClient.getAuthentication("asc_auth_key");
asc_auth_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//asc_auth_key.setApiKeyPrefix("Token");
// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");
OperationsApi apiInstance = new OperationsApi(defaultClient);
BatchRequestDto batchRequestDto = new BatchRequestDto(); // BatchRequestDto |
try {
FileOperationArrayWrapper result = apiInstance.copyBatchItems(batchRequestDto);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#copyBatchItems");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of file operations | - |
| 401 | Unauthorized | - |
| 403 | You don't have enough permission to copy | - |
ObjectWrapper createUploadSession(folderId, sessionRequest)
Chunked uploadCreates the session to upload large files in multiple chunks to the folder with the ID specified in the request. Note: Each chunk can have different length but the length should be multiple of 512 and greater or equal to 10 mb. Last chunk can have any size. After the initial response to the request with the 200 OK status, you must get the location field value from the response. Send all your chunks to this location. Each chunk must be sent in the exact order the chunks appear in the file. After receiving each chunk, the server will respond with the current information about the upload session if no errors occurred. When the number of bytes uploaded is equal to the number of bytes you sent in the initial request, the server responds with the 201 Created status and sends you information about the uploaded file. Information about created session which includes:
- id: unique ID of this upload session,
- created: UTC time when the session was created,
- expired: UTC time when the session will expire if no chunks are sent before that time,
- location: URL where you should send your next chunk,
- bytes_uploaded: number of bytes uploaded for the specific upload ID,
- bytes_total: total number of bytes which will be uploaded.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| folderId | Integer | The session folder ID. | |
| sessionRequest | SessionRequest | The session parameters. |
Basic, OAuth2, ApiKeyBearer, asc_auth_key, Bearer, OpenId
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: ApiKeyBearer
ApiKeyAuth ApiKeyBearer = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyBearer");
ApiKeyBearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyBearer.setApiKeyPrefix("Token");
// Configure API key authorization: asc_auth_key
ApiKeyAuth asc_auth_key = (ApiKeyAuth) defaultClient.getAuthentication("asc_auth_key");
asc_auth_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//asc_auth_key.setApiKeyPrefix("Token");
// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");
OperationsApi apiInstance = new OperationsApi(defaultClient);
Integer folderId = 9079; // Integer | The session folder ID.
SessionRequest sessionRequest = new SessionRequest(); // SessionRequest | The session parameters.
try {
ObjectWrapper result = apiInstance.createUploadSession(folderId, sessionRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#createUploadSession");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Information about created session | - |
| 401 | Unauthorized | - |
| 403 | You don't have enough permission to create | - |
FileOperationArrayWrapper deleteBatchItems(deleteBatchRequestDto)
Delete files and foldersDeletes the files and folders with the IDs specified in the request.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| deleteBatchRequestDto | DeleteBatchRequestDto | [optional] |
Basic, OAuth2, ApiKeyBearer, asc_auth_key, Bearer, OpenId
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: ApiKeyBearer
ApiKeyAuth ApiKeyBearer = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyBearer");
ApiKeyBearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyBearer.setApiKeyPrefix("Token");
// Configure API key authorization: asc_auth_key
ApiKeyAuth asc_auth_key = (ApiKeyAuth) defaultClient.getAuthentication("asc_auth_key");
asc_auth_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//asc_auth_key.setApiKeyPrefix("Token");
// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");
OperationsApi apiInstance = new OperationsApi(defaultClient);
DeleteBatchRequestDto deleteBatchRequestDto = new DeleteBatchRequestDto(); // DeleteBatchRequestDto |
try {
FileOperationArrayWrapper result = apiInstance.deleteBatchItems(deleteBatchRequestDto);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#deleteBatchItems");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of file operations | - |
| 401 | Unauthorized | - |
| 403 | You don't have enough permission to delete | - |
BooleanWrapper deleteFavoritesFromBody(baseBatchRequestDto)
Delete favorite files and folders (using body parameters)Removes files and folders with the IDs specified in the request from the favorite list. This method uses the body parameters.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| baseBatchRequestDto | BaseBatchRequestDto | [optional] |
Basic, OAuth2, ApiKeyBearer, asc_auth_key, Bearer, OpenId
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: ApiKeyBearer
ApiKeyAuth ApiKeyBearer = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyBearer");
ApiKeyBearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyBearer.setApiKeyPrefix("Token");
// Configure API key authorization: asc_auth_key
ApiKeyAuth asc_auth_key = (ApiKeyAuth) defaultClient.getAuthentication("asc_auth_key");
asc_auth_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//asc_auth_key.setApiKeyPrefix("Token");
// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");
OperationsApi apiInstance = new OperationsApi(defaultClient);
BaseBatchRequestDto baseBatchRequestDto = new BaseBatchRequestDto(); // BaseBatchRequestDto |
try {
BooleanWrapper result = apiInstance.deleteFavoritesFromBody(baseBatchRequestDto);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#deleteFavoritesFromBody");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Boolean value: true if the operation is successful | - |
| 401 | Unauthorized | - |
FileOperationWrapper deleteFileVersions(deleteVersionBatchRequestDto)
Delete file versionsDeletes the file versions with the IDs specified in the request.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| deleteVersionBatchRequestDto | DeleteVersionBatchRequestDto | [optional] |
Basic, OAuth2, ApiKeyBearer, asc_auth_key, Bearer, OpenId
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: ApiKeyBearer
ApiKeyAuth ApiKeyBearer = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyBearer");
ApiKeyBearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyBearer.setApiKeyPrefix("Token");
// Configure API key authorization: asc_auth_key
ApiKeyAuth asc_auth_key = (ApiKeyAuth) defaultClient.getAuthentication("asc_auth_key");
asc_auth_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//asc_auth_key.setApiKeyPrefix("Token");
// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");
OperationsApi apiInstance = new OperationsApi(defaultClient);
DeleteVersionBatchRequestDto deleteVersionBatchRequestDto = new DeleteVersionBatchRequestDto(); // DeleteVersionBatchRequestDto |
try {
FileOperationWrapper result = apiInstance.deleteFileVersions(deleteVersionBatchRequestDto);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#deleteFileVersions");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of file operations | - |
| 401 | Unauthorized | - |
FileOperationArrayWrapper duplicateBatchItems(duplicateRequestDto)
Duplicate files and foldersDuplicates all the selected files and folders.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| duplicateRequestDto | DuplicateRequestDto | [optional] |
Basic, OAuth2, ApiKeyBearer, asc_auth_key, Bearer, OpenId
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: ApiKeyBearer
ApiKeyAuth ApiKeyBearer = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyBearer");
ApiKeyBearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyBearer.setApiKeyPrefix("Token");
// Configure API key authorization: asc_auth_key
ApiKeyAuth asc_auth_key = (ApiKeyAuth) defaultClient.getAuthentication("asc_auth_key");
asc_auth_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//asc_auth_key.setApiKeyPrefix("Token");
// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");
OperationsApi apiInstance = new OperationsApi(defaultClient);
DuplicateRequestDto duplicateRequestDto = new DuplicateRequestDto(); // DuplicateRequestDto |
try {
FileOperationArrayWrapper result = apiInstance.duplicateBatchItems(duplicateRequestDto);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#duplicateBatchItems");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of file operations | - |
| 401 | Unauthorized | - |
| 403 | You don't have enough permission to duplicate | - |
FileOperationArrayWrapper emptyTrash(single)
Empty the Trash folderDeletes all the files and folders from the Trash folder.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| single | Boolean | Specifies whether to return only the current operation | [optional] |
Basic, OAuth2, ApiKeyBearer, asc_auth_key, Bearer, OpenId
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: ApiKeyBearer
ApiKeyAuth ApiKeyBearer = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyBearer");
ApiKeyBearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyBearer.setApiKeyPrefix("Token");
// Configure API key authorization: asc_auth_key
ApiKeyAuth asc_auth_key = (ApiKeyAuth) defaultClient.getAuthentication("asc_auth_key");
asc_auth_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//asc_auth_key.setApiKeyPrefix("Token");
// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");
OperationsApi apiInstance = new OperationsApi(defaultClient);
Boolean single = true; // Boolean | Specifies whether to return only the current operation
try {
FileOperationArrayWrapper result = apiInstance.emptyTrash(single);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#emptyTrash");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of file operations | - |
| 401 | Unauthorized | - |
FileOperationArrayWrapper getOperationStatuses(id)
Get active file operationsReturns a list of all the active file operations.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The ID of the file operation. | [optional] |
No authorization required
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
OperationsApi apiInstance = new OperationsApi(defaultClient);
String id = "9846"; // String | The ID of the file operation.
try {
FileOperationArrayWrapper result = apiInstance.getOperationStatuses(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#getOperationStatuses");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of file operations | - |
FileOperationArrayWrapper getOperationStatusesByType(operationType, id)
Get file operation statusesRetrieves the statuses of operations filtered by the specified operation type.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| operationType | FileOperationType | Specifies the type of file operation to be retrieved. | [enum: 0, 1, 2, 3, 4, 5, 6, 7] |
| id | String | The ID of the file operation. | [optional] |
No authorization required
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
OperationsApi apiInstance = new OperationsApi(defaultClient);
FileOperationType operationType = FileOperationType.fromValue("0"); // FileOperationType | Specifies the type of file operation to be retrieved.
String id = "9079"; // String | The ID of the file operation.
try {
FileOperationArrayWrapper result = apiInstance.getOperationStatusesByType(operationType, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#getOperationStatusesByType");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of file operations | - |
FileOperationArrayWrapper markAsRead(baseBatchRequestDto)
Mark as readMarks the files and folders with the IDs specified in the request as read.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| baseBatchRequestDto | BaseBatchRequestDto | [optional] |
Basic, OAuth2, ApiKeyBearer, asc_auth_key, Bearer, OpenId
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: ApiKeyBearer
ApiKeyAuth ApiKeyBearer = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyBearer");
ApiKeyBearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyBearer.setApiKeyPrefix("Token");
// Configure API key authorization: asc_auth_key
ApiKeyAuth asc_auth_key = (ApiKeyAuth) defaultClient.getAuthentication("asc_auth_key");
asc_auth_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//asc_auth_key.setApiKeyPrefix("Token");
// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");
OperationsApi apiInstance = new OperationsApi(defaultClient);
BaseBatchRequestDto baseBatchRequestDto = new BaseBatchRequestDto(); // BaseBatchRequestDto |
try {
FileOperationArrayWrapper result = apiInstance.markAsRead(baseBatchRequestDto);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#markAsRead");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of file operations | - |
| 401 | Unauthorized | - |
FileOperationArrayWrapper moveBatchItems(batchRequestDto)
Move or copy to a folderMoves or copies all the selected files and folders to the folder with the ID specified in the request.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| batchRequestDto | BatchRequestDto | [optional] |
Basic, OAuth2, ApiKeyBearer, asc_auth_key, Bearer, OpenId
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: ApiKeyBearer
ApiKeyAuth ApiKeyBearer = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyBearer");
ApiKeyBearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyBearer.setApiKeyPrefix("Token");
// Configure API key authorization: asc_auth_key
ApiKeyAuth asc_auth_key = (ApiKeyAuth) defaultClient.getAuthentication("asc_auth_key");
asc_auth_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//asc_auth_key.setApiKeyPrefix("Token");
// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");
OperationsApi apiInstance = new OperationsApi(defaultClient);
BatchRequestDto batchRequestDto = new BatchRequestDto(); // BatchRequestDto |
try {
FileOperationArrayWrapper result = apiInstance.moveBatchItems(batchRequestDto);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#moveBatchItems");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of file operations | - |
| 401 | Unauthorized | - |
| 403 | You don't have enough permission to move | - |
ConversationResultArrayWrapper startFileConversion(fileId, checkConversionRequestDtoInteger)
Start file conversionStarts a conversion operation of a file with the ID specified in the request.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| fileId | Integer | The file ID to start conversion proccess. | |
| checkConversionRequestDtoInteger | CheckConversionRequestDtoInteger | The parameters for checking file conversion. | [optional] |
ConversationResultArrayWrapper
Basic, OAuth2, ApiKeyBearer, asc_auth_key, Bearer, OpenId
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: ApiKeyBearer
ApiKeyAuth ApiKeyBearer = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyBearer");
ApiKeyBearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyBearer.setApiKeyPrefix("Token");
// Configure API key authorization: asc_auth_key
ApiKeyAuth asc_auth_key = (ApiKeyAuth) defaultClient.getAuthentication("asc_auth_key");
asc_auth_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//asc_auth_key.setApiKeyPrefix("Token");
// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");
OperationsApi apiInstance = new OperationsApi(defaultClient);
Integer fileId = 9846; // Integer | The file ID to start conversion proccess.
CheckConversionRequestDtoInteger checkConversionRequestDtoInteger = new CheckConversionRequestDtoInteger(); // CheckConversionRequestDtoInteger | The parameters for checking file conversion.
try {
ConversationResultArrayWrapper result = apiInstance.startFileConversion(fileId, checkConversionRequestDtoInteger);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#startFileConversion");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Conversion result | - |
| 401 | Unauthorized | - |
FileOperationArrayWrapper terminateTasks(id)
Finish active operationsFinishes an operation with the ID specified in the request or all the active operations.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The operation unique identifier. |
No authorization required
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
OperationsApi apiInstance = new OperationsApi(defaultClient);
String id = "9846"; // String | The operation unique identifier.
try {
FileOperationArrayWrapper result = apiInstance.terminateTasks(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#terminateTasks");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of file operations | - |
StringWrapper updateFileComment(fileId, updateComment)
Update a commentUpdates a comment in a file with the ID specified in the request.
For more information, see api.onlyoffice.com.
| Name | Type | Description | Notes |
|---|---|---|---|
| fileId | Integer | The file ID where the comment is located. | |
| updateComment | UpdateComment | The parameters for updating a comment. |
Basic, OAuth2, ApiKeyBearer, asc_auth_key, Bearer, OpenId
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.OperationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8092");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: ApiKeyBearer
ApiKeyAuth ApiKeyBearer = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyBearer");
ApiKeyBearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyBearer.setApiKeyPrefix("Token");
// Configure API key authorization: asc_auth_key
ApiKeyAuth asc_auth_key = (ApiKeyAuth) defaultClient.getAuthentication("asc_auth_key");
asc_auth_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//asc_auth_key.setApiKeyPrefix("Token");
// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");
OperationsApi apiInstance = new OperationsApi(defaultClient);
Integer fileId = 9846; // Integer | The file ID where the comment is located.
UpdateComment updateComment = new UpdateComment(); // UpdateComment | The parameters for updating a comment.
try {
StringWrapper result = apiInstance.updateFileComment(fileId, updateComment);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationsApi#updateFileComment");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Updated comment | - |
| 401 | Unauthorized | - |