Search Results for

    Show / Hide Table of Contents

    Method RemoveDocumentVersions

    RemoveDocumentVersions(String, String, List<String>)

    Remove several versions of a document (including the current one)

    Declaration
    void RemoveDocumentVersions(string connectionId, string documentId, List<string> documentVersionIds)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String documentId

    The document id. See also Id

    System.Collections.Generic.List<System.String> documentVersionIds

    List of document version ids to remove

    Examples

    POST http://YourServerName/InfoShare/Json/Document/RemoveDocumentVersions

    Example for remove several document versions.

    {
        "connectionId": "b96c5a8f-1488-4f0f-81ac-7435d4102ff2",
        "documentId": "7d718d47-211a-4647-b05f-c94bdcf821fc",
        "documentVersionIds": 
        [
            "5a706bed-ec90-ed11-a36e-00155d109004",
            "58657ae1-ec90-ed11-a36e-00155d109004",
            "57B782db-ec90-ed11-a36e-00155d109004",
            "d38c91cf-ec90-ed11-a36e-00155d109004",
            "7d718d47-211a-4647-b05f-c94bdcf821fc"
        ]
    }

    Response:

    { }
    Exceptions
    Type Condition
    ServiceException

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

    ServiceException

    No document found for documentId {documentId} (10005)

    ServiceException

    Document version not found {versionId} (10113)

    ServiceException

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

    ServiceException

    At least one version of document with id {documentId} must remain (10344)

    Back to top Copyright © Kendox