Результаты поиска для

    Show / Hide Table of Contents

    Interface IReportsClient

    Namespace: FastReport.Cloud
    Assembly: FastReport.Cloud.SDK.dll
    Syntax
    public interface IReportsClient

    Methods

    CopyFile(String, String)

    Copy a file into a specified folder

    Declaration
    ReportVM CopyFile(string id, string folderId)
    Parameters
    Type Name Description
    System.String id

    file id

    System.String folderId

    folder id

    Returns
    Type Description
    ReportVM

    Success

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    CopyFileAsync(String, String, System.Threading.CancellationToken)

    Copy a file into a specified folder

    Declaration
    System.Threading.Tasks.Task<ReportVM> CopyFileAsync(string id, string folderId, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    file id

    System.String folderId

    folder id

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<ReportVM>

    Success

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    CreateSharingKey(String, CreateFileShareVM)

    Create a new key, that can be used to share access to a file <br />
    (You need Administrate.Anon permission to create a new key)

    Declaration
    FileSharingKeysVM CreateSharingKey(string id, CreateFileShareVM body = null)
    Parameters
    Type Name Description
    System.String id

    file id

    CreateFileShareVM body

    parameters for sharing key creation

    Returns
    Type Description
    FileSharingKeysVM

    Success

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    CreateSharingKeyAsync(String, CreateFileShareVM, System.Threading.CancellationToken)

    Create a new key, that can be used to share access to a file <br />
    (You need Administrate.Anon permission to create a new key)

    Declaration
    System.Threading.Tasks.Task<FileSharingKeysVM> CreateSharingKeyAsync(string id, CreateFileShareVM body = null, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    file id

    CreateFileShareVM body

    parameters for sharing key creation

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<FileSharingKeysVM>

    Success

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    DeleteFile(String)

    Delete specified file

    Declaration
    void DeleteFile(string id)
    Parameters
    Type Name Description
    System.String id

    file id

    Remarks

    User with Delete permission can access the method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    DeleteFileAsync(String, System.Threading.CancellationToken)

    Delete specified file

    Declaration
    System.Threading.Tasks.Task DeleteFileAsync(string id, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    file id

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task

    Success

    Remarks

    User with Delete permission can access the method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    DeleteSharingKey(String, String)

    Deletes a sharing key, making links, that utilizing it no longer work

    Declaration
    void DeleteSharingKey(string id, string key)
    Parameters
    Type Name Description
    System.String id

    file id

    System.String key

    key to delete

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    DeleteSharingKeyAsync(String, String, System.Threading.CancellationToken)

    Deletes a sharing key, making links, that utilizing it no longer work

    Declaration
    System.Threading.Tasks.Task DeleteSharingKeyAsync(string id, string key, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    file id

    System.String key

    key to delete

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task

    Success

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    Export(String, ExportReportVM)

    Export specified report to a specified format

    Declaration
    ExportVM Export(string id, ExportReportVM body = null)
    Parameters
    Type Name Description
    System.String id

    report id

    ExportReportVM body

    export parameters

    Returns
    Type Description
    ExportVM

    Specified report has been exported

    Remarks

    User with Execute Export permission on prepared report and
    Create Entity on an export folder can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    ExportAsync(String, ExportReportVM, System.Threading.CancellationToken)

    Export specified report to a specified format

    Declaration
    System.Threading.Tasks.Task<ExportVM> ExportAsync(string id, ExportReportVM body = null, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    report id

    ExportReportVM body

    export parameters

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<ExportVM>

    Specified report has been exported

    Remarks

    User with Execute Export permission on prepared report and
    Create Entity on an export folder can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetByTaskId(String)

    Get reports by specified task id

    Declaration
    ReportsVM GetByTaskId(string taskId)
    Parameters
    Type Name Description
    System.String taskId

    task id

    Returns
    Type Description
    ReportsVM

    Reports are found

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetByTaskIdAsync(String, System.Threading.CancellationToken)

    Get reports by specified task id

    Declaration
    System.Threading.Tasks.Task<ReportsVM> GetByTaskIdAsync(string taskId, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String taskId

    task id

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<ReportsVM>

    Reports are found

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetByTaskMessageId(String)

    Get report by specified task message id

    Declaration
    ReportVM GetByTaskMessageId(string taskMessageId)
    Parameters
    Type Name Description
    System.String taskMessageId

    task message id

    Returns
    Type Description
    ReportVM

    Report is found

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetByTaskMessageIdAsync(String, System.Threading.CancellationToken)

    Get report by specified task message id

    Declaration
    System.Threading.Tasks.Task<ReportVM> GetByTaskMessageIdAsync(string taskMessageId, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String taskMessageId

    task message id

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<ReportVM>

    Report is found

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetFile(String)

    Get specified file

    Declaration
    ReportVM GetFile(string id)
    Parameters
    Type Name Description
    System.String id

    file id

    Returns
    Type Description
    ReportVM

    Success

    Remarks

    User with Get Entity permission can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetFileAsync(String, System.Threading.CancellationToken)

    Get specified file

    Declaration
    System.Threading.Tasks.Task<ReportVM> GetFileAsync(string id, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    file id

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<ReportVM>

    Success

    Remarks

    User with Get Entity permission can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetFileHistory(String, Nullable<Int32>, Nullable<Int32>)

    Returns list of actions, performed on this file

    Declaration
    AuditActionsVM GetFileHistory(string id, int? skip = null, int? take = null)
    Parameters
    Type Name Description
    System.String id

    file id

    System.Nullable<System.Int32> skip

    how many actions to skip

    System.Nullable<System.Int32> take

    how many actions to take

    Returns
    Type Description
    AuditActionsVM

    Success

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetFileHistoryAsync(String, Nullable<Int32>, Nullable<Int32>, System.Threading.CancellationToken)

    Returns list of actions, performed on this file

    Declaration
    System.Threading.Tasks.Task<AuditActionsVM> GetFileHistoryAsync(string id, int? skip = null, int? take = null, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    file id

    System.Nullable<System.Int32> skip

    how many actions to skip

    System.Nullable<System.Int32> take

    how many actions to take

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<AuditActionsVM>

    Success

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetFilesCount(String)

    Get count of files what contains in a specified folder

    Declaration
    CountVM GetFilesCount(string id)
    Parameters
    Type Name Description
    System.String id

    folder id

    Returns
    Type Description
    CountVM

    Success

    Remarks

    User with Get Count permission can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetFilesCountAsync(String, System.Threading.CancellationToken)

    Get count of files what contains in a specified folder

    Declaration
    System.Threading.Tasks.Task<CountVM> GetFilesCountAsync(string id, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    folder id

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<CountVM>

    Success

    Remarks

    User with Get Count permission can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetFilesList(String, Nullable<Int32>, Nullable<Int32>, String, Nullable<FileSorting>, Nullable<Boolean>, Nullable<Boolean>)

    Get files from the specified folder

    Declaration
    ReportsVM GetFilesList(string id, int? skip = null, int? take = null, string searchPattern = null, FileSorting? orderBy = null, bool? desc = null, bool? useRegex = null)
    Parameters
    Type Name Description
    System.String id

    folder id

    System.Nullable<System.Int32> skip

    number of files to skip

    System.Nullable<System.Int32> take

    number of files to take

    System.String searchPattern

    search pattern used to only include matching files in the result<br />
    (leave unspecified to list all files)

    System.Nullable<FileSorting> orderBy

    a field to sort by

    System.Nullable<System.Boolean> desc

    if true - sorting will be done in the descending order, otherwise - ascending

    System.Nullable<System.Boolean> useRegex

    set this to true if you want to use regular expression to search

    Returns
    Type Description
    ReportsVM

    Success

    Remarks

    User with a Get Entity permission can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetFilesListAsync(String, Nullable<Int32>, Nullable<Int32>, String, Nullable<FileSorting>, Nullable<Boolean>, Nullable<Boolean>, System.Threading.CancellationToken)

    Get files from the specified folder

    Declaration
    System.Threading.Tasks.Task<ReportsVM> GetFilesListAsync(string id, int? skip = null, int? take = null, string searchPattern = null, FileSorting? orderBy = null, bool? desc = null, bool? useRegex = null, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    folder id

    System.Nullable<System.Int32> skip

    number of files to skip

    System.Nullable<System.Int32> take

    number of files to take

    System.String searchPattern

    search pattern used to only include matching files in the result<br />
    (leave unspecified to list all files)

    System.Nullable<FileSorting> orderBy

    a field to sort by

    System.Nullable<System.Boolean> desc

    if true - sorting will be done in the descending order, otherwise - ascending

    System.Nullable<System.Boolean> useRegex

    set this to true if you want to use regular expression to search

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<ReportsVM>

    Success

    Remarks

    User with a Get Entity permission can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetMyPermissions(String)

    Get current user's permissions to a file

    Declaration
    FilePermissionCRUDVM GetMyPermissions(string id)
    Parameters
    Type Name Description
    System.String id

    file id

    Returns
    Type Description
    FilePermissionCRUDVM

    Success

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetMyPermissionsAsync(String, System.Threading.CancellationToken)

    Get current user's permissions to a file

    Declaration
    System.Threading.Tasks.Task<FilePermissionCRUDVM> GetMyPermissionsAsync(string id, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    file id

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<FilePermissionCRUDVM>

    Success

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetPermissions(String)

    Get all permissions from a file. <br />

    Declaration
    FilePermissionsVM GetPermissions(string id)
    Parameters
    Type Name Description
    System.String id

    folder id

    Returns
    Type Description
    FilePermissionsVM

    Success

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetPermissionsAsync(String, System.Threading.CancellationToken)

    Get all permissions from a file. <br />

    Declaration
    System.Threading.Tasks.Task<FilePermissionsVM> GetPermissionsAsync(string id, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    folder id

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<FilePermissionsVM>

    Success

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetSharingKeys(String)

    Returns all sharing keys, associated with the file

    Declaration
    FileSharingKeysVM GetSharingKeys(string id)
    Parameters
    Type Name Description
    System.String id

    file id

    Returns
    Type Description
    FileSharingKeysVM

    Success

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    GetSharingKeysAsync(String, System.Threading.CancellationToken)

    Returns all sharing keys, associated with the file

    Declaration
    System.Threading.Tasks.Task<FileSharingKeysVM> GetSharingKeysAsync(string id, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    file id

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<FileSharingKeysVM>

    Success

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    MoveFile(String, String)

    Move file to a specified folder

    Declaration
    ReportVM MoveFile(string id, string folderId)
    Parameters
    Type Name Description
    System.String id

    file id

    System.String folderId

    folder id

    Returns
    Type Description
    ReportVM

    Success

    Remarks

    User with a Update Place permission for a folder and Create Entity
    for a Parent Folder can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    MoveFileAsync(String, String, System.Threading.CancellationToken)

    Move file to a specified folder

    Declaration
    System.Threading.Tasks.Task<ReportVM> MoveFileAsync(string id, string folderId, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    file id

    System.String folderId

    folder id

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<ReportVM>

    Success

    Remarks

    User with a Update Place permission for a folder and Create Entity
    for a Parent Folder can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    MoveFileToBin(String)

    Move specified file to recycle bin

    Declaration
    void MoveFileToBin(string id)
    Parameters
    Type Name Description
    System.String id

    file id

    Remarks

    User with Delete permission can access the method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    MoveFileToBinAsync(String, System.Threading.CancellationToken)

    Move specified file to recycle bin

    Declaration
    System.Threading.Tasks.Task MoveFileToBinAsync(string id, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    file id

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task

    Success

    Remarks

    User with Delete permission can access the method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    RecoverFile(String, String)

    Recover specified file from bin

    Declaration
    void RecoverFile(string id, string recoveryPath = null)
    Parameters
    Type Name Description
    System.String id

    file id

    System.String recoveryPath

    id of the folder, where the file should be restored to

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    RecoverFileAsync(String, String, System.Threading.CancellationToken)

    Recover specified file from bin

    Declaration
    System.Threading.Tasks.Task RecoverFileAsync(string id, string recoveryPath = null, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    file id

    System.String recoveryPath

    id of the folder, where the file should be restored to

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task

    Success

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    RenameFile(String, FileRenameVM)

    Rename a file

    Declaration
    ReportVM RenameFile(string id, FileRenameVM body = null)
    Parameters
    Type Name Description
    System.String id
    FileRenameVM body
    Returns
    Type Description
    ReportVM

    Success

    Remarks

    User with Update Name permission can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    RenameFileAsync(String, FileRenameVM, System.Threading.CancellationToken)

    Rename a file

    Declaration
    System.Threading.Tasks.Task<ReportVM> RenameFileAsync(string id, FileRenameVM body = null, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id
    FileRenameVM body
    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<ReportVM>

    Success

    Remarks

    User with Update Name permission can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    StaticPreview(String, PreviewReportVM)

    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

    Declaration
    ExportVM StaticPreview(string id, PreviewReportVM body = null)
    Parameters
    Type Name Description
    System.String id

    template id

    PreviewReportVM body

    Model with parameters

    Returns
    Type Description
    ExportVM

    Specified template has been prepared

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    StaticPreviewAsync(String, PreviewReportVM, System.Threading.CancellationToken)

    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

    Declaration
    System.Threading.Tasks.Task<ExportVM> StaticPreviewAsync(string id, PreviewReportVM body = null, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    template id

    PreviewReportVM body

    Model with parameters

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<ExportVM>

    Specified template has been prepared

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    UpdateIcon(String, FileIconVM)

    Update a files's icon

    Declaration
    ReportVM UpdateIcon(string id, FileIconVM body = null)
    Parameters
    Type Name Description
    System.String id
    FileIconVM body
    Returns
    Type Description
    ReportVM

    Success

    Remarks

    User with Update Icon permission can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    UpdateIconAsync(String, FileIconVM, System.Threading.CancellationToken)

    Update a files's icon

    Declaration
    System.Threading.Tasks.Task<ReportVM> UpdateIconAsync(string id, FileIconVM body = null, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id
    FileIconVM body
    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<ReportVM>

    Success

    Remarks

    User with Update Icon permission can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    UpdatePermissions(String, UpdateFilePermissionsVM)

    Update permissions

    Declaration
    void UpdatePermissions(string id, UpdateFilePermissionsVM body = null)
    Parameters
    Type Name Description
    System.String id

    file id

    UpdateFilePermissionsVM body

    new permissions VM

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    UpdatePermissionsAsync(String, UpdateFilePermissionsVM, System.Threading.CancellationToken)

    Update permissions

    Declaration
    System.Threading.Tasks.Task UpdatePermissionsAsync(string id, UpdateFilePermissionsVM body = null, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    file id

    UpdateFilePermissionsVM body

    new permissions VM

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task

    Success

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    UpdateTags(String, FileTagsUpdateVM)

    Update tags

    Declaration
    ReportVM UpdateTags(string id, FileTagsUpdateVM body = null)
    Parameters
    Type Name Description
    System.String id
    FileTagsUpdateVM body
    Returns
    Type Description
    ReportVM

    Success

    Remarks

    User with Update Tags permission can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    UpdateTagsAsync(String, FileTagsUpdateVM, System.Threading.CancellationToken)

    Update tags

    Declaration
    System.Threading.Tasks.Task<ReportVM> UpdateTagsAsync(string id, FileTagsUpdateVM body = null, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id
    FileTagsUpdateVM body
    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<ReportVM>

    Success

    Remarks

    User with Update Tags permission can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    UploadFile(String, ReportCreateVM)

    Upload a file to the specified folder. The method is deprecated, use the UploadFileV2 method instead!

    Declaration
    ReportVM UploadFile(string id, ReportCreateVM body = null)
    Parameters
    Type Name Description
    System.String id

    folder id

    ReportCreateVM body

    new file's view model

    Returns
    Type Description
    ReportVM

    Success

    Remarks

    User with Create Entity permission can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    UploadFileAsync(String, ReportCreateVM, System.Threading.CancellationToken)

    Upload a file to the specified folder. The method is deprecated, use the UploadFileV2 method instead!

    Declaration
    System.Threading.Tasks.Task<ReportVM> UploadFileAsync(string id, ReportCreateVM body = null, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    folder id

    ReportCreateVM body

    new file's view model

    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<ReportVM>

    Success

    Remarks

    User with Create Entity permission can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    UploadFileV2(String, String, System.Collections.Generic.IEnumerable<String>, FileParameter, FileParameter)

    Alternative api for upload a file to the specified folder!

    Declaration
    ReportVM UploadFileV2(string id, string templateId = null, System.Collections.Generic.IEnumerable<string> tags = null, FileParameter icon = null, FileParameter fileContent = null)
    Parameters
    Type Name Description
    System.String id

    Identifier of folder

    System.String templateId
    System.Collections.Generic.IEnumerable<System.String> tags
    FileParameter icon
    FileParameter fileContent
    Returns
    Type Description
    ReportVM

    File has been uploaded

    Remarks

    User with Create Entity permission can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    UploadFileV2Async(String, String, System.Collections.Generic.IEnumerable<String>, FileParameter, FileParameter, System.Threading.CancellationToken)

    Alternative api for upload a file to the specified folder!

    Declaration
    System.Threading.Tasks.Task<ReportVM> UploadFileV2Async(string id, string templateId = null, System.Collections.Generic.IEnumerable<string> tags = null, FileParameter icon = null, FileParameter fileContent = null, System.Threading.CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.String id

    Identifier of folder

    System.String templateId
    System.Collections.Generic.IEnumerable<System.String> tags
    FileParameter icon
    FileParameter fileContent
    System.Threading.CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    System.Threading.Tasks.Task<ReportVM>

    File has been uploaded

    Remarks

    User with Create Entity permission can access this method.

    Exceptions
    Type Condition
    ApiException

    A server side error occurred.

    Вверх 2025.2.19 © 1998-2025 ООО «Быстрые отчеты»