All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
templateFolderAndFileClearRecycleBin | DELETE /api/rp/v1/Templates/{subscriptionId}/ClearRecycleBin | Delete all folders and files from recycle bin |
templateFolderAndFileCopyFiles | POST /api/rp/v1/Templates/{subscriptionId}/CopyFiles | Copy folders and files to a specified folder |
templateFolderAndFileDeleteFiles | POST /api/rp/v1/Templates/{subscriptionId}/DeleteFiles | Delete folders and files |
templateFolderAndFileGetCount | GET /api/rp/v1/Templates/Folder/{id}/CountFolderAndFiles | Get count of files and folders what contains in a specified folder |
templateFolderAndFileGetFoldersAndFiles | GET /api/rp/v1/Templates/Folder/{id}/ListFolderAndFiles | Get all folders and files from specified folder |
templateFolderAndFileGetRecycleBinFoldersAndFiles | GET /api/rp/v1/Templates/{subscriptionId}/ListRecycleBinFolderAndFiles | Get all folders and files from recycle bin |
templateFolderAndFileMoveFiles | POST /api/rp/v1/Templates/{subscriptionId}/MoveFiles | Move folders and files to a specified folder |
templateFolderAndFileMoveFilesToBin | POST /api/rp/v1/Templates/{subscriptionId}/ToBin | Move folders and files to bin |
templateFolderAndFileRecoverAllFromRecycleBin | POST /api/rp/v1/Templates/{subscriptionId}/RecoverRecycleBin | Recover all folders and files from recycle bin |
templateFolderAndFileRecoverFiles | POST /api/rp/v1/Templates/{subscriptionId}/RecoverFiles | Recover folders and files from bin |
templateFoldersCalculateFolderSize | GET /api/rp/v1/Templates/Folder/{id}/size | Get specified folder, calculate it's size |
templateFoldersCopyFolder | POST /api/rp/v1/Templates/Folder/{id}/Copy/{folderId} | Move folder to a specified folder |
templateFoldersDeleteFolder | DELETE /api/rp/v1/Templates/Folder/{id} | Delete specified folder |
templateFoldersExport | POST /api/rp/v1/Templates/Folder/{id}/Export | Export specified template folder to a specified format |
templateFoldersGetBreadcrumbs | GET /api/rp/v1/Templates/Folder/{id}/Breadcrumbs | Get specified folder breadcrumbs |
templateFoldersGetFolder | GET /api/rp/v1/Templates/Folder/{id} | Get specified folder |
templateFoldersGetFolders | GET /api/rp/v1/Templates/Folder/{id}/ListFolders | Get all folders from specified folder |
templateFoldersGetFoldersCount | GET /api/rp/v1/Templates/Folder/{id}/CountFolders | Get count of folders what contains in a specified folder |
templateFoldersGetOrCreate | GET /api/rp/v1/Templates/Folder/getOrCreate | Get specified folder |
templateFoldersGetPermissions | GET /api/rp/v1/Templates/Folder/{id}/permissions | Get all folder permissions |
templateFoldersGetRootFolder | GET /api/rp/v1/Templates/Root | Get user's root folder (without parents) |
templateFoldersMoveFolder | POST /api/rp/v1/Templates/Folder/{id}/Move/{folderId} | Move folder to a specified folder |
templateFoldersMoveFolderToBin | DELETE /api/rp/v1/Templates/Folder/{id}/ToBin | Move specified folder to recycle bin |
templateFoldersPostFolder | POST /api/rp/v1/Templates/Folder/{id}/Folder | Create folder |
templateFoldersPrepare | POST /api/rp/v1/Templates/Folder/{id}/Prepare | Prepare specified template folder to report folder |
templateFoldersRecoverFolder | POST /api/rp/v1/Templates/Folder/{id}/Recover | Recover specified folder |
templateFoldersRenameFolder | PUT /api/rp/v1/Templates/Folder/{id}/Rename | Rename a folder |
templateFoldersUpdateIcon | PUT /api/rp/v1/Templates/Folder/{id}/Icon | Update a folder's icon |
templateFoldersUpdatePermissions | POST /api/rp/v1/Templates/{id}/permissions | Update permissions |
templateFoldersUpdateTags | PUT /api/rp/v1/Templates/Folder/{id}/UpdateTags | Update tags |
templatesCopyFile | POST /api/rp/v1/Templates/File/{id}/Copy/{folderId} | Copy file to a specified folder |
templatesDeleteFile | DELETE /api/rp/v1/Templates/File/{id} | Delete specified file |
templatesExport | POST /api/rp/v1/Templates/File/{id}/Export | Export specified report template to a specified format |
templatesGetFile | GET /api/rp/v1/Templates/File/{id} | Get specified file |
templatesGetFileHistory | GET /api/rp/v1/Templates/File/{id}/History | Returns list of actions, performed on this file |
templatesGetFilesCount | GET /api/rp/v1/Templates/Folder/{id}/CountFiles | Get count of files what contains in a specified folder |
templatesGetFilesList | GET /api/rp/v1/Templates/Folder/{id}/ListFiles | Get all files from specified folder. <br /> User with Get Entity permission can access this method. <br /> The method will returns minimal infomration about the file: <br /> id, name, size, editedTime, createdTime, tags, status, statusReason. |
templatesGetPermissions | GET /api/rp/v1/Templates/File/{id}/permissions | Get all file permissions |
templatesMoveFile | POST /api/rp/v1/Templates/File/{id}/Move/{folderId} | Move file to a specified folder |
templatesMoveFileToBin | DELETE /api/rp/v1/Templates/File/{id}/ToBin | Move specified file to recycle bin |
templatesPrepare | POST /api/rp/v1/Templates/File/{id}/Prepare | Prepare specified template to report |
templatesRecoverFile | POST /api/rp/v1/Templates/File/{id}/Recover | Recover specified file from bin |
templatesRenameFile | PUT /api/rp/v1/Templates/File/{id}/Rename | Rename a file |
templatesStaticPreview | POST /api/rp/v1/Templates/File/{id}/StaticPreview | Make preview for the report. Generate a new or return exist prepared svg files. If template was changed will be returned a new. Pass the `` parameter to check prepared timestamp |
templatesUpdateContent | PUT /api/rp/v1/Templates/File/{id}/Content | Updates contnet of the template. The method is deprecated, use the UpdateContentV2 method instead! |
templatesUpdateContentV2 | PUT /api/rp/v2/Templates/File/{id}/Content | Updates contnet of the template. |
templatesUpdateIcon | PUT /api/rp/v1/Templates/File/{id}/Icon | Update a files's icon |
templatesUpdatePermissions | POST /api/rp/v1/Templates/File/{id}/permissions | Update permissions |
templatesUpdateTags | PUT /api/rp/v1/Templates/File/{id}/UpdateTags | Update tags |
templatesUploadFile | POST /api/rp/v1/Templates/Folder/{id}/File | Upload a file to the specified folder. The method is deprecated, use the UploadFileV2 method instead! |
templatesUploadFileV2 | POST /api/rp/v2/Templates/Folder/{id}/File | Alternative api for upload a file to the specified folder! |
templateFolderAndFileClearRecycleBin(subscriptionId)
Delete all folders and files from recycle bin
User with a Delete RecycleBin permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String subscriptionId = "subscriptionId_example"; // String | subscription id
try {
apiInstance.templateFolderAndFileClearRecycleBin(subscriptionId);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFolderAndFileClearRecycleBin");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | subscription id |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | All folders and files in bin have been deleted | - |
400 | FolderId is null | - |
402 | Payment required, subscription is blocked | - |
403 | You don't have rights for the operation | - |
404 | File or folder not found | - |
templateFolderAndFileCopyFiles(subscriptionId, selectedFilesVM)
Copy folders and files to a specified folder
User with a Get permission for a files and Create permission for a destination folder can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String subscriptionId = "subscriptionId_example"; // String | id of current subscription
SelectedFilesVM selectedFilesVM = new SelectedFilesVM(); // SelectedFilesVM | VM with files' ids and params of their destination
try {
apiInstance.templateFolderAndFileCopyFiles(subscriptionId, selectedFilesVM);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFolderAndFileCopyFiles");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | id of current subscription | |
selectedFilesVM | SelectedFilesVM | VM with files' ids and params of their destination | [optional] |
null (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | All folders and files have been copied | - |
400 | FolderId is null | - |
402 | Payment required, subscription is blocked | - |
403 | You don't have rights for the operation | - |
404 | File or folder not found | - |
500 | Server Error | - |
templateFolderAndFileDeleteFiles(subscriptionId, selectedFilesVM)
Delete folders and files
User with a Delete permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String subscriptionId = "subscriptionId_example"; // String | id of current subscription
SelectedFilesVM selectedFilesVM = new SelectedFilesVM(); // SelectedFilesVM | VM with files' ids and params of their destination
try {
apiInstance.templateFolderAndFileDeleteFiles(subscriptionId, selectedFilesVM);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFolderAndFileDeleteFiles");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | id of current subscription | |
selectedFilesVM | SelectedFilesVM | VM with files' ids and params of their destination | [optional] |
null (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | All folders and files have been deleted | - |
400 | FolderId is null | - |
402 | Payment required, subscription is blocked | - |
403 | You don't have rights for the operation | - |
404 | File or folder not found | - |
CountVM templateFolderAndFileGetCount(id, searchPattern, useRegex)
Get count of files and folders what contains in a specified folder
User with a Get Count permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | folder id
String searchPattern = "searchPattern_example"; // String | string, that must be incuded in file or folder name to be counted <br /> (leave undefined to count all files and folders)
Boolean useRegex = false; // Boolean | set this to true if you want to use regular expression to search
try {
CountVM result = apiInstance.templateFolderAndFileGetCount(id, searchPattern, useRegex);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFolderAndFileGetCount");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | folder id | |
searchPattern | String | string, that must be incuded in file or folder name to be counted <br /> (leave undefined to count all files and folders) | [optional] |
useRegex | Boolean | set this to true if you want to use regular expression to search | [optional] [default to false] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns count of the files in a specified folder | - |
400 | FolderId is null | - |
402 | Payment required, subscription is blocked | - |
403 | You don't have rights for the operation | - |
404 | Folder not found | - |
FilesVM templateFolderAndFileGetFoldersAndFiles(id, skip, take, orderBy, desc, searchPattern, useRegex)
Get all folders and files from specified folder
User with a Get Entity permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | folder id
Integer skip = 0; // Integer | number of folder and files, that have to be skipped
Integer take = 10; // Integer | number of folder and files, that have to be returned
FileSorting orderBy = FileSorting.fromValue("None"); // FileSorting | indicates a field to sort by
Boolean desc = false; // Boolean | indicates if sorting is descending
String searchPattern = ""; // String |
Boolean useRegex = false; // Boolean |
try {
FilesVM result = apiInstance.templateFolderAndFileGetFoldersAndFiles(id, skip, take, orderBy, desc, searchPattern, useRegex);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFolderAndFileGetFoldersAndFiles");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | folder id | |
skip | Integer | number of folder and files, that have to be skipped | [optional] [default to 0] |
take | Integer | number of folder and files, that have to be returned | [optional] [default to 10] |
orderBy | FileSorting | indicates a field to sort by | [optional] [enum: None, CreatedTime, EditedTime, Size, Name] |
desc | Boolean | indicates if sorting is descending | [optional] [default to false] |
searchPattern | String | [optional] [default to ] | |
useRegex | Boolean | [optional] [default to false] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns list of the files from a specified folder | - |
400 | FolderId is null | - |
402 | Payment required, subscription is blocked | - |
403 | You don't have rights for the operation | - |
404 | File or folder not found | - |
FilesVM templateFolderAndFileGetRecycleBinFoldersAndFiles(subscriptionId, skip, take, orderBy, desc, searchPattern, useRegex)
Get all folders and files from recycle bin
User with a Get DeletedFiles permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String subscriptionId = "subscriptionId_example"; // String | subscription id
Integer skip = 0; // Integer | number of folder and files, that have to be skipped
Integer take = 10; // Integer | number of folder and files, that have to be returned
FileSorting orderBy = FileSorting.fromValue("None"); // FileSorting | indicates a field to sort by
Boolean desc = false; // Boolean | indicates if sorting is descending
String searchPattern = ""; // String |
Boolean useRegex = false; // Boolean |
try {
FilesVM result = apiInstance.templateFolderAndFileGetRecycleBinFoldersAndFiles(subscriptionId, skip, take, orderBy, desc, searchPattern, useRegex);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFolderAndFileGetRecycleBinFoldersAndFiles");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | subscription id | |
skip | Integer | number of folder and files, that have to be skipped | [optional] [default to 0] |
take | Integer | number of folder and files, that have to be returned | [optional] [default to 10] |
orderBy | FileSorting | indicates a field to sort by | [optional] [enum: None, CreatedTime, EditedTime, Size, Name] |
desc | Boolean | indicates if sorting is descending | [optional] [default to false] |
searchPattern | String | [optional] [default to ] | |
useRegex | Boolean | [optional] [default to false] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns list of the files from a specified folder | - |
400 | FolderId is null | - |
402 | Payment required, subscription is blocked | - |
403 | You don't have rights for the operation | - |
404 | File or folder not found | - |
templateFolderAndFileMoveFiles(subscriptionId, selectedFilesVM)
Move folders and files to a specified folder
User with a Update Place permission for a files and Create permission for a destination folder can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String subscriptionId = "subscriptionId_example"; // String | id of current subscription
SelectedFilesVM selectedFilesVM = new SelectedFilesVM(); // SelectedFilesVM | VM with files' ids and params of their destination
try {
apiInstance.templateFolderAndFileMoveFiles(subscriptionId, selectedFilesVM);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFolderAndFileMoveFiles");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | id of current subscription | |
selectedFilesVM | SelectedFilesVM | VM with files' ids and params of their destination | [optional] |
null (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | All folders and files have been moved | - |
400 | FolderId is null | - |
402 | Payment required, subscription is blocked | - |
403 | You don't have rights for the operation | - |
404 | File or folder not found | - |
500 | Server Error | - |
templateFolderAndFileMoveFilesToBin(subscriptionId, selectedFilesVM)
Move folders and files to bin
User with a Delete permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String subscriptionId = "subscriptionId_example"; // String | id of current subscription
SelectedFilesVM selectedFilesVM = new SelectedFilesVM(); // SelectedFilesVM | VM with files' ids and params of their destination
try {
apiInstance.templateFolderAndFileMoveFilesToBin(subscriptionId, selectedFilesVM);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFolderAndFileMoveFilesToBin");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | id of current subscription | |
selectedFilesVM | SelectedFilesVM | VM with files' ids and params of their destination | [optional] |
null (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | All folders and files have been moved to bin | - |
400 | FolderId is null | - |
402 | Payment required, subscription is blocked | - |
403 | You don't have rights for the operation | - |
404 | File or folder not found | - |
templateFolderAndFileRecoverAllFromRecycleBin(subscriptionId)
Recover all folders and files from recycle bin
User with a Create RecycleBin permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String subscriptionId = "subscriptionId_example"; // String | subscription id
try {
apiInstance.templateFolderAndFileRecoverAllFromRecycleBin(subscriptionId);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFolderAndFileRecoverAllFromRecycleBin");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | subscription id |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | All folders and files in bin have been restored | - |
400 | FolderId is null | - |
402 | Payment required, subscription is blocked | - |
403 | You don't have rights for the operation | - |
404 | File or folder not found | - |
templateFolderAndFileRecoverFiles(subscriptionId, selectedFilesVM)
Recover folders and files from bin
User with a SubscriptionCreate permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String subscriptionId = "subscriptionId_example"; // String | id of current subscription
SelectedFilesVM selectedFilesVM = new SelectedFilesVM(); // SelectedFilesVM | VM with files' ids and params of their destination
try {
apiInstance.templateFolderAndFileRecoverFiles(subscriptionId, selectedFilesVM);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFolderAndFileRecoverFiles");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | id of current subscription | |
selectedFilesVM | SelectedFilesVM | VM with files' ids and params of their destination | [optional] |
null (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | All folders and files have been recovered | - |
400 | FolderId is null | - |
402 | Payment required, subscription is blocked | - |
403 | You don't have rights for the operation | - |
404 | File or folder not found | - |
FolderSizeVM templateFoldersCalculateFolderSize(id)
Get specified folder, calculate it's size
User with a Get Entity permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | folder id
try {
FolderSizeVM result = apiInstance.templateFoldersCalculateFolderSize(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersCalculateFolderSize");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | folder id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns specified folder | - |
400 | Id is null | - |
403 | You don't have rights for the operation | - |
404 | Folder not found | - |
FileVM templateFoldersCopyFolder(id, folderId)
Move folder to a specified folder
User with a Update Place permission for a folder and Create Entity for a Parent Folder can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | moving folder id
String folderId = "folderId_example"; // String | destination folder id
try {
FileVM result = apiInstance.templateFoldersCopyFolder(id, folderId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersCopyFolder");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | moving folder id | |
folderId | String | destination folder id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Folder has been moved to a specified folder | - |
400 | folderId or parentFolderId is null | - |
403 | You don't have rights for the operation | - |
402 | Subscription is outdated | - |
404 | Folder not found | - |
templateFoldersDeleteFolder(id)
Delete specified folder
User with a Delete Entity permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | folder id
try {
apiInstance.templateFoldersDeleteFolder(id);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersDeleteFolder");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | folder id |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Folder succesfully deleted | - |
400 | Id is null | - |
403 | You don't have rights for the operation | - |
402 | Subscription is outdated | - |
404 | Folder not found | - |
FileVM templateFoldersExport(id, exportTemplateVM)
Export specified template folder to a specified format
User with Execute Export permission on template folder and Create Entity on an export folder can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | template folder id
ExportTemplateVM exportTemplateVM = new ExportTemplateVM(); // ExportTemplateVM | export parameters (string only)
try {
FileVM result = apiInstance.templateFoldersExport(id, exportTemplateVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersExport");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | template folder id | |
exportTemplateVM | ExportTemplateVM | export parameters (string only) | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Specified template folder has been exported | - |
400 | Template folder Id is null | - |
403 | You don't have rights for the operation | - |
402 | Subscription is outdated | - |
404 | Exports folder not found | - |
BreadcrumbsVM templateFoldersGetBreadcrumbs(id)
Get specified folder breadcrumbs
User with a Get Entity permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | folder id
try {
BreadcrumbsVM result = apiInstance.templateFoldersGetBreadcrumbs(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersGetBreadcrumbs");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | folder id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns breadcrumbs parents list (starts from root folder) | - |
400 | folderId is null | - |
403 | You don't have rights for the operation | - |
404 | Folder not found | - |
FileVM templateFoldersGetFolder(id)
Get specified folder
User with a Get Entity permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | folder id
try {
FileVM result = apiInstance.templateFoldersGetFolder(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersGetFolder");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | folder id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns specified folder | - |
400 | Id is null | - |
403 | You don't have rights for the operation | - |
404 | Folder not found | - |
FilesVM templateFoldersGetFolders(id, skip, take, orderBy, desc, searchPattern, useRegex)
Get all folders from specified folder
User with a Get Entity permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | folder id
Integer skip = 0; // Integer | number of files, that have to be skipped
Integer take = 10; // Integer | number of files, that have to be returned
FileSorting orderBy = FileSorting.fromValue("None"); // FileSorting |
Boolean desc = false; // Boolean |
String searchPattern = ""; // String |
Boolean useRegex = false; // Boolean |
try {
FilesVM result = apiInstance.templateFoldersGetFolders(id, skip, take, orderBy, desc, searchPattern, useRegex);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersGetFolders");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | folder id | |
skip | Integer | number of files, that have to be skipped | [optional] [default to 0] |
take | Integer | number of files, that have to be returned | [optional] [default to 10] |
orderBy | FileSorting | [optional] [enum: None, CreatedTime, EditedTime, Size, Name] | |
desc | Boolean | [optional] [default to false] | |
searchPattern | String | [optional] [default to ] | |
useRegex | Boolean | [optional] [default to false] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Gets all folders from a specified folder | - |
400 | folderId is null | - |
403 | You don't have rights for the operation | - |
404 | Folder not found | - |
CountVM templateFoldersGetFoldersCount(id)
Get count of folders what contains in a specified folder
User with a Get Count permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | folder id
try {
CountVM result = apiInstance.templateFoldersGetFoldersCount(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersGetFoldersCount");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | folder id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns count of folders in a specified folder | - |
400 | folderId is null | - |
403 | You don't have rights for the operation | - |
404 | Folder not found | - |
FileVM templateFoldersGetOrCreate(name, subscriptionId, parentId)
Get specified folder
User with a Get Entity permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String name = "name_example"; // String | folder name
String subscriptionId = "subscriptionId_example"; // String | subscriptionId
String parentId = "parentId_example"; // String | parent folder id
try {
FileVM result = apiInstance.templateFoldersGetOrCreate(name, subscriptionId, parentId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersGetOrCreate");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | folder name | [optional] |
subscriptionId | String | subscriptionId | [optional] |
parentId | String | parent folder id | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns specified folder | - |
400 | Id is null | - |
403 | You don't have rights for the operation | - |
404 | Folder not found | - |
FilePermissionsVM templateFoldersGetPermissions(id)
Get all folder permissions
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String |
try {
FilePermissionsVM result = apiInstance.templateFoldersGetPermissions(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersGetPermissions");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | returned permissions | - |
400 | id is not valid | - |
403 | You don't have rights for the operation | - |
404 | folder is not found | - |
FileVM templateFoldersGetRootFolder(subscriptionId)
Get user's root folder (without parents)
> Breakchange. Now user model doesn't contain a root folders. This method can return error 400 and 404 when subscription is not found.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String subscriptionId = "subscriptionId_example"; // String |
try {
FileVM result = apiInstance.templateFoldersGetRootFolder(subscriptionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersGetRootFolder");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Gets user's root folder (without parents) | - |
400 | Error with the request. | - |
404 | Not found subscription | - |
403 | No permissions to get root folder | - |
FileVM templateFoldersMoveFolder(id, folderId)
Move folder to a specified folder
User with a Update Place permission for a folder and Create Entity for a Parent Folder can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | moving folder id
String folderId = "folderId_example"; // String | destination folder id
try {
FileVM result = apiInstance.templateFoldersMoveFolder(id, folderId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersMoveFolder");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | moving folder id | |
folderId | String | destination folder id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Folder has been moved to a specified folder | - |
400 | folderId or parentFolderId is null | - |
403 | You don't have rights for the operation | - |
402 | Subscription is outdated | - |
404 | Folder not found | - |
templateFoldersMoveFolderToBin(id)
Move specified folder to recycle bin
User with a Delete Entity permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | folder id
try {
apiInstance.templateFoldersMoveFolderToBin(id);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersMoveFolderToBin");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | folder id |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Folder succesfully deleted | - |
400 | Id is null | - |
403 | You don't have rights for the operation | - |
402 | Subscription is outdated | - |
404 | Folder not found | - |
FileVM templateFoldersPostFolder(id, templateFolderCreateVM)
Create folder
User with a Create Entity permisison can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | Identifier of parent folder id
TemplateFolderCreateVM templateFolderCreateVM = new TemplateFolderCreateVM(); // TemplateFolderCreateVM | create VM
try {
FileVM result = apiInstance.templateFoldersPostFolder(id, templateFolderCreateVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersPostFolder");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of parent folder id | |
templateFolderCreateVM | TemplateFolderCreateVM | create VM | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | New folder has been created) | - |
400 | Parent folder id is null | - |
403 | You don't have rights for the operation | - |
402 | subscription is outdated | - |
404 | parent folder/subscription not found | - |
FileVM templateFoldersPrepare(id, prepareTemplateVM)
Prepare specified template folder to report folder
User with Execute Prepare permission on report and Create Entity on a prepared report folder can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | template id
PrepareTemplateVM prepareTemplateVM = new PrepareTemplateVM(); // PrepareTemplateVM | Template folder prepare view model
try {
FileVM result = apiInstance.templateFoldersPrepare(id, prepareTemplateVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersPrepare");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | template id | |
prepareTemplateVM | PrepareTemplateVM | Template folder prepare view model | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Specified template folder has been prepared | - |
400 | Template folder Id is null | - |
403 | You don't have rights for the operation | - |
402 | subscription is outdated | - |
404 | Template or report folder not found | - |
templateFoldersRecoverFolder(id, recoveryPath)
Recover specified folder
User with a Delete Entity permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | folder id
String recoveryPath = "recoveryPath_example"; // String |
try {
apiInstance.templateFoldersRecoverFolder(id, recoveryPath);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersRecoverFolder");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | folder id | |
recoveryPath | String | [optional] |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Folder succesfully restored from bin | - |
400 | Id is null | - |
403 | You don't have rights for the operation | - |
402 | Subscription is outdated | - |
404 | Folder not found | - |
FileVM templateFoldersRenameFolder(id, folderRenameVM)
Rename a folder
User with a Update Name permision can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String |
FolderRenameVM folderRenameVM = new FolderRenameVM(); // FolderRenameVM |
try {
FileVM result = apiInstance.templateFoldersRenameFolder(id, folderRenameVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersRenameFolder");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
folderRenameVM | FolderRenameVM | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Folder name has been updated | - |
400 | folderId is null | - |
403 | You don't have rights for the operation | - |
402 | subscription is outdated | - |
404 | Folder not found | - |
FileVM templateFoldersUpdateIcon(id, folderIconVM)
Update a folder's icon
User with a Update Icon permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | Identifier of folder
FolderIconVM folderIconVM = new FolderIconVM(); // FolderIconVM | Update icon model
try {
FileVM result = apiInstance.templateFoldersUpdateIcon(id, folderIconVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersUpdateIcon");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of folder | |
folderIconVM | FolderIconVM | Update icon model | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Folder's icon has been updated | - |
400 | folderId is null | - |
403 | You don't have rights for the operation | - |
402 | subscription is outdated | - |
404 | Folder not found | - |
templateFoldersUpdatePermissions(id, updateFilePermissionsVM)
Update permissions
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String |
UpdateFilePermissionsVM updateFilePermissionsVM = new UpdateFilePermissionsVM(); // UpdateFilePermissionsVM |
try {
apiInstance.templateFoldersUpdatePermissions(id, updateFilePermissionsVM);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersUpdatePermissions");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
updateFilePermissionsVM | UpdateFilePermissionsVM | [optional] |
null (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
400 | Bad Request | - |
402 | Client Error | - |
403 | Forbidden | - |
404 | Not Found | - |
500 | Server Error | - |
FileVM templateFoldersUpdateTags(id, folderTagsUpdateVM)
Update tags
User with a Update Tags permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String |
FolderTagsUpdateVM folderTagsUpdateVM = new FolderTagsUpdateVM(); // FolderTagsUpdateVM |
try {
FileVM result = apiInstance.templateFoldersUpdateTags(id, folderTagsUpdateVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templateFoldersUpdateTags");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
folderTagsUpdateVM | FolderTagsUpdateVM | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Tags has been updated | - |
400 | folderId or Tags is null | - |
403 | You don't have rights for the operation | - |
402 | subscription is outdated | - |
404 | Folder not found | - |
TemplateVM templatesCopyFile(id, folderId)
Copy file to a specified folder
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | file id
String folderId = "folderId_example"; // String | folder id
try {
TemplateVM result = apiInstance.templatesCopyFile(id, folderId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesCopyFile");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | file id | |
folderId | String | folder id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | File has been copied | - |
400 | fileId or folderId is null | - |
403 | You don't have rights for the operation | - |
402 | Subscription is outdated | - |
404 | File or folder not found | - |
500 | Exception thrown | - |
templatesDeleteFile(id)
Delete specified file
User with Delete permission can access the method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | file id
try {
apiInstance.templatesDeleteFile(id);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesDeleteFile");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | file id |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | File succesfully deleted | - |
400 | Id is null | - |
403 | You don't have rights for the operation | - |
402 | Subscription is outdated | - |
404 | File not found | - |
500 | Exception thrown | - |
ExportVM templatesExport(id, exportTemplateVM)
Export specified report template to a specified format
User with Execute Export permission on prepared report and Create Entity on an export folder can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | template id
ExportTemplateVM exportTemplateVM = new ExportTemplateVM(); // ExportTemplateVM | export parameters (string only)
try {
ExportVM result = apiInstance.templatesExport(id, exportTemplateVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesExport");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | template id | |
exportTemplateVM | ExportTemplateVM | export parameters (string only) | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Specified report has been exported | - |
204 | Specified report has been exported | - |
400 | Report Id is null | - |
403 | You don't have rights for the operation | - |
402 | Subscription is outdated | - |
404 | Exports folder not found | - |
TemplateVM templatesGetFile(id)
Get specified file
User with Get Entity permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | file id
try {
TemplateVM result = apiInstance.templatesGetFile(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesGetFile");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | file id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns the specified file | - |
400 | Id is null | - |
403 | You don't have rights for the operation | - |
404 | File not found | - |
500 | Exception thrown | - |
AuditActionsVM templatesGetFileHistory(id, skip, take)
Returns list of actions, performed on this file
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String |
Integer skip = 0; // Integer |
Integer take = 10; // Integer |
try {
AuditActionsVM result = apiInstance.templatesGetFileHistory(id, skip, take);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesGetFileHistory");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
skip | Integer | [optional] [default to 0] | |
take | Integer | [optional] [default to 10] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
400 | Bad Request | - |
403 | Forbidden | - |
404 | Not Found | - |
CountVM templatesGetFilesCount(id)
Get count of files what contains in a specified folder
User with Get Count permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | folder id
try {
CountVM result = apiInstance.templatesGetFilesCount(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesGetFilesCount");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | folder id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns count of the files in a specified folder | - |
400 | FolderId is null | - |
403 | You don't have rights for the operation | - |
404 | Folder not found | - |
500 | Exception thrown | - |
TemplatesVM templatesGetFilesList(id, skip, take, searchPattern, orderBy, desc, useRegex)
Get all files from specified folder. <br /> User with Get Entity permission can access this method. <br /> The method will returns minimal infomration about the file: <br /> id, name, size, editedTime, createdTime, tags, status, statusReason.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | folder id
Integer skip = 0; // Integer | number of files, that have to be skipped
Integer take = 10; // Integer | number of files, that have to be returned
String searchPattern = "searchPattern_example"; // String |
FileSorting orderBy = FileSorting.fromValue("None"); // FileSorting |
Boolean desc = false; // Boolean |
Boolean useRegex = false; // Boolean |
try {
TemplatesVM result = apiInstance.templatesGetFilesList(id, skip, take, searchPattern, orderBy, desc, useRegex);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesGetFilesList");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | folder id | |
skip | Integer | number of files, that have to be skipped | [optional] [default to 0] |
take | Integer | number of files, that have to be returned | [optional] [default to 10] |
searchPattern | String | [optional] | |
orderBy | FileSorting | [optional] [enum: None, CreatedTime, EditedTime, Size, Name] | |
desc | Boolean | [optional] [default to false] | |
useRegex | Boolean | [optional] [default to false] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns list of the files from a specified folder | - |
400 | FolderId is null | - |
403 | You don't have rights for the operation | - |
404 | File or folder not found | - |
500 | Exception thrown | - |
FilePermissionsVM templatesGetPermissions(id)
Get all file permissions
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String |
try {
FilePermissionsVM result = apiInstance.templatesGetPermissions(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesGetPermissions");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | got permissions successfully | - |
400 | id is not valid | - |
403 | You don't have rights for the operation | - |
404 | file is not found | - |
TemplateVM templatesMoveFile(id, folderId)
Move file to a specified folder
User with a Update Place permission for a folder and Create Entity for a Parent Folder can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | file id
String folderId = "folderId_example"; // String | folder id
try {
TemplateVM result = apiInstance.templatesMoveFile(id, folderId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesMoveFile");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | file id | |
folderId | String | folder id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | File has been moved | - |
400 | fileId or folderId is null | - |
403 | You don't have rights for the operation | - |
402 | Subscription is outdated | - |
404 | File or folder not found | - |
500 | Exception thrown | - |
templatesMoveFileToBin(id)
Move specified file to recycle bin
User with Delete permission can access the method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | file id
try {
apiInstance.templatesMoveFileToBin(id);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesMoveFileToBin");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | file id |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | File succesfully deleted | - |
400 | Id is null | - |
403 | You don't have rights for the operation | - |
402 | Subscription is outdated | - |
404 | File not found | - |
500 | Exception thrown | - |
ReportVM templatesPrepare(id, prepareTemplateVM)
Prepare specified template to report
User with Execute Prepare permission on report and Create Entity on a prepared report folder can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | template id
PrepareTemplateVM prepareTemplateVM = new PrepareTemplateVM(); // PrepareTemplateVM | Template prepare view model
try {
ReportVM result = apiInstance.templatesPrepare(id, prepareTemplateVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesPrepare");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | template id | |
prepareTemplateVM | PrepareTemplateVM | Template prepare view model | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Specified template has been prepared | - |
204 | Specified template has been prepared | - |
400 | Report Id is null | - |
403 | You don't have rights for the operation | - |
402 | subscription is outdated | - |
404 | Template or folder not found | - |
templatesRecoverFile(id, recoveryPath)
Recover specified file from bin
User with Delete permission can access the method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | file id
String recoveryPath = "recoveryPath_example"; // String |
try {
apiInstance.templatesRecoverFile(id, recoveryPath);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesRecoverFile");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | file id | |
recoveryPath | String | [optional] |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | File succesfully recovered | - |
400 | Id is null | - |
403 | You don't have rights for the operation | - |
402 | Subscription is outdated | - |
404 | File not found | - |
500 | Exception thrown | - |
TemplateVM templatesRenameFile(id, fileRenameVM)
Rename a file
User with Update Name permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String |
FileRenameVM fileRenameVM = new FileRenameVM(); // FileRenameVM |
try {
TemplateVM result = apiInstance.templatesRenameFile(id, fileRenameVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesRenameFile");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
fileRenameVM | FileRenameVM | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | File name has been updated | - |
400 | FileId is null | - |
403 | You don't have rights for the operation | - |
402 | Subscription is outdated | - |
404 | File not found | - |
500 | Exception thrown | - |
ExportVM templatesStaticPreview(id, previewTemplateVM)
Make preview for the report. Generate a new or return exist prepared svg files. If template was changed will be returned a new. Pass the `` parameter to check prepared timestamp
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | template id
PreviewTemplateVM previewTemplateVM = new PreviewTemplateVM(); // PreviewTemplateVM | Model with parameters
try {
ExportVM result = apiInstance.templatesStaticPreview(id, previewTemplateVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesStaticPreview");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | template id | |
previewTemplateVM | PreviewTemplateVM | Model with parameters | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Specified template has been prepared | - |
204 | Specified template has been prepared | - |
400 | Template Id is null | - |
403 | You don't have rights for the operation | - |
402 | Subscription is outdated | - |
404 | Template or folder not found | - |
templatesUpdateContent(id, updateFileContentVM)
Updates contnet of the template. The method is deprecated, use the UpdateContentV2 method instead!
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | template id
UpdateFileContentVM updateFileContentVM = new UpdateFileContentVM(); // UpdateFileContentVM | VM with only byte[] with new content
try {
apiInstance.templatesUpdateContent(id, updateFileContentVM);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesUpdateContent");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | template id | |
updateFileContentVM | UpdateFileContentVM | VM with only byte[] with new content | [optional] |
null (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
404 | Not Found | - |
400 | Bad Request | - |
403 | Forbidden | - |
402 | Client Error | - |
templatesUpdateContentV2(id, fileContent)
Updates contnet of the template.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | template id
File fileContent = new File("/path/to/file"); // File |
try {
apiInstance.templatesUpdateContentV2(id, fileContent);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesUpdateContentV2");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | template id | |
fileContent | File |
null (empty response body)
- Content-Type: multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
404 | Not Found | - |
400 | Bad Request | - |
403 | Forbidden | - |
402 | Client Error | - |
TemplateVM templatesUpdateIcon(id, fileIconVM)
Update a files's icon
User with Update Icon permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String |
FileIconVM fileIconVM = new FileIconVM(); // FileIconVM |
try {
TemplateVM result = apiInstance.templatesUpdateIcon(id, fileIconVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesUpdateIcon");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
fileIconVM | FileIconVM | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | File's icon has been updated | - |
400 | FileId is null | - |
403 | You don't have rights for the operation | - |
402 | Subscription is outdated | - |
404 | File not found | - |
500 | Exception thrown | - |
templatesUpdatePermissions(id, updateFilePermissionsVM)
Update permissions
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String |
UpdateFilePermissionsVM updateFilePermissionsVM = new UpdateFilePermissionsVM(); // UpdateFilePermissionsVM |
try {
apiInstance.templatesUpdatePermissions(id, updateFilePermissionsVM);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesUpdatePermissions");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
updateFilePermissionsVM | UpdateFilePermissionsVM | [optional] |
null (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
400 | Bad Request | - |
402 | Client Error | - |
403 | Forbidden | - |
404 | Not Found | - |
500 | Server Error | - |
TemplateVM templatesUpdateTags(id, fileTagsUpdateVM)
Update tags
User with Update Tags permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String |
FileTagsUpdateVM fileTagsUpdateVM = new FileTagsUpdateVM(); // FileTagsUpdateVM |
try {
TemplateVM result = apiInstance.templatesUpdateTags(id, fileTagsUpdateVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesUpdateTags");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
fileTagsUpdateVM | FileTagsUpdateVM | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Tags has been updated | - |
400 | FileId is null | - |
403 | You don't have rights for the operation | - |
402 | Subscription is outdated | - |
404 | File not found | - |
500 | Exception thrown | - |
TemplateVM templatesUploadFile(id, templateCreateVM)
Upload a file to the specified folder. The method is deprecated, use the UploadFileV2 method instead!
User with Create Entity permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | Identifier of folder
TemplateCreateVM templateCreateVM = new TemplateCreateVM(); // TemplateCreateVM | file's view model
try {
TemplateVM result = apiInstance.templatesUploadFile(id, templateCreateVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesUploadFile");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of folder | |
templateCreateVM | TemplateCreateVM | file's view model | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | File has been uploaded | - |
400 | fileVM view model is not valid | - |
403 | You don't have rights for the operation | - |
402 | subscription is outdated | - |
404 | folder/subscription is not found | - |
TemplateVM templatesUploadFileV2(id, fileContent, tags, icon)
Alternative api for upload a file to the specified folder!
User with Create Entity permission can access this method.
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String id = "id_example"; // String | Identifier of folder
File fileContent = new File("/path/to/file"); // File |
List<String> tags = Arrays.asList(); // List<String> |
File icon = new File("/path/to/file"); // File |
try {
TemplateVM result = apiInstance.templatesUploadFileV2(id, fileContent, tags, icon);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#templatesUploadFileV2");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of folder | |
fileContent | File | ||
tags | List<String> | [optional] | |
icon | File | [optional] |
- Content-Type: multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | File has been uploaded | - |
400 | fileVM view model is not valid | - |
403 | You don't have rights for the operation | - |
402 | subscription is outdated | - |
404 | folder/subscription is not found | - |