Search Results for

    Show / Hide Table of Contents

    Method RemoveElementsFromFolder

    RemoveElementsFromFolder(String, List<FolderPathContract>)

    Remove a list of elements from folders.

    Declaration
    void RemoveElementsFromFolder(string connectionId, List<FolderPathContract> folderElementPaths)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.Collections.Generic.List<FolderPathContract> folderElementPaths

    List of paths to elements which shall be removed.

    Examples

    POST http://YourServerName/InfoShare/Json/Folder/RemoveElementsFromFolder

    Example for remove a list of elements from a folder.

    {
       "connectionId": "dd0d8950-a5db-4d81-a190-2d686a7f034c",
         "folderElementPaths": [{
           "Culture": "en-US",
           "FolderSystemId": "9762c061-b7cf-e911-a939-00155d290a08",
           "Path": "cb62c061-b7cf-e911-a939-00155d290a08\\400c1f61-c0cf-e911-a939-00155d290a08
                  \\72ba7f2e-c3de-e911-a948-00155d290a08",
           "PathGlobal": {
             "Values": [{
             "Culture": "de",
             "Text": "Allgemeine Suche\\test1" }, {
             "Culture": "en",
             "Text": "Default search\\test1" }] } }, {
           "Culture": "en-US",
           "FolderSystemId": "9762c061-b7cf-e911-a939-00155d290a08",
           "Path": "cb62c061-b7cf-e911-a939-00155d290a08\\400c1f61-c0cf-e911-a939-00155d290a08
                  \\c5538c45-c3de-e911-a948-00155d290a08",
           "PathGlobal": {
             "Values": [{
             "Culture": "de",
             "Text": "Allgemeine Suche\\test2" }, {
             "Culture": "en",
             "Text": "Default search\\test2" }] } }]
    }

    Response:

    { }
    Exceptions
    Type Condition
    ServiceException

    The connection id {connectionId} isn't valid or has expired (10008)

    ServiceException

    Not allowed (10014)

    ServiceException

    Root folder not found (10023)

    ServiceException

    Folder not found {folderPath} (10025)

    ServiceException

    Verification code is needed: Verification code not yet verified (10152)

    Back to top Copyright © Kendox